aboutsummaryrefslogtreecommitdiff
path: root/content/methods/exercise-stringer.go
AgeCommit message (Collapse)Author
2024-07-14all: sync with golang.org/x/website (2/2)Shulhan
Perubahan, * _content/tour: change '// +build' to '//go:build'
2016-02-13content: rename variable names stringer exerciseKatrina Owen
Presumably n was for name, but it wasn't immediately clear since "name" was not mentioned anywhere in the code example. There was a bit of discussion about whether it should be called k (for key) or s (for string) or h (for host). It seems like a lot of the confusion stems from the map being named addrs, while actually containing both the name and the ip address of the hosts. Change-Id: Idf4483f142831b375cb0b1a5ebd58e8f3d9df30b Reviewed-on: https://go-review.googlesource.com/19405 Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-01-14content: add a test for code snippetsAndrew Gerrand
Also: fix bad build tags, mark some snippets as no-build or no-run. This is a step toward adding the tour to the build dashboard. Change-Id: I58af8f2289fee4c2ceee3be5a44a3fb986b26296 Reviewed-on: https://go-review.googlesource.com/18555 Reviewed-by: Rob Pike <r@golang.org>
2014-07-30go-tour: add Stringer, Reader discussions and exercises; other tweaksAndrew Gerrand
LGTM=campoy R=campoy CC=golang-codereviews https://golang.org/cl/118170043