aboutsummaryrefslogtreecommitdiff
path: root/content/moretypes/array.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-04-07content: rewrite slices sectionAndrew Gerrand
This rewrite introduces slices in terms of arrays, before introducing make. I think it flows more nicely. Fixes golang/go#13883 Fixes golang/go#14893 Change-Id: Idd0c6de29c0207d755cac673e580efee6c34a7b2 Reviewed-on: https://go-review.googlesource.com/21358 Reviewed-by: Chris Broadfoot <cbro@golang.org> Reviewed-by: Rob Pike <r@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