aboutsummaryrefslogtreecommitdiff
path: root/content/methods/methods-with-pointer-receivers.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'
2020-01-25Sync with golang/tour@9616eac69404c8d4aab36bf42624b08e2e8dffd2Mhd Sulhan
Translate comment and text in code examples.
2015-08-05tour: improve sample code for methods with pointersFrancesc Campoy
Fixes golang/go#12034 Change-Id: Ie63b389f7c8f7348112cb566fdc019784b2c653b Reviewed-on: https://go-review.googlesource.com/13262 Reviewed-by: Andrew Gerrand <adg@golang.org>
2014-07-23go-tour: move code snippets to article-specific directoriesAndrew Gerrand
As the prog/tour directory grows it becomes more difficult to see what belongs where. Also the prog/tour directory hierarchy is one level too deep. Here's the code used to make this change: for article in *.article; do base=$(echo $article | sed 's/.article//') mkdir $base gofiles=$(grep '^.play' $article | awk '{print $2}' | sed 's_prog/tour/__' | sort -u) for f in $gofiles; do hg mv prog/tour/$f $base/$f done sed -i '' 's_prog/tour_'$base'_' $article done # catch dreg masked by "#appengine: " comment directive hg mv prog/tour/sandbox.go welcome/ LGTM=campoy R=campoy CC=golang-codereviews https://golang.org/cl/111250043