diff options
author | Rob Pike <r@golang.org> | 2011-08-17 14:34:48 +1000 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2011-08-17 14:34:48 +1000 |
commit | 67c1d018c028bfc9987976925adc31bbcf0775ec (patch) | |
tree | 5136235f2a00562d995e1210f869e1b350fc0e12 /test/chan | |
parent | f28c6ef7da587f8def11b3809e0355178b687467 (diff) | |
download | go-67c1d018c028bfc9987976925adc31bbcf0775ec.tar.gz |
template: delete old template code.
It's already in old/template; make that build.
Update a couple of references to point to the old template.
They can be updated later.
Update goplay to use exp/template.
R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/4902046
Diffstat (limited to 'test/chan')
-rw-r--r-- | test/chan/select5.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/chan/select5.go b/test/chan/select5.go index e7ca9e015..48ffadfd0 100644 --- a/test/chan/select5.go +++ b/test/chan/select5.go @@ -17,8 +17,8 @@ import ( "bufio" "fmt" "io" + "old/template" "os" - "template" ) func main() { @@ -37,7 +37,7 @@ func main() { } fmt.Fprintln(out, `}`) } - + do(recv) do(send) do(recvOrder) @@ -54,8 +54,8 @@ func run(t *template.Template, a interface{}, out io.Writer) { } } -type arg struct{ - def bool +type arg struct { + def bool nreset int } @@ -466,7 +466,7 @@ func next() bool { } // increment last choice sequence - cp = len(choices)-1 + cp = len(choices) - 1 for cp >= 0 && choices[cp].i == choices[cp].n-1 { cp-- } @@ -479,4 +479,3 @@ func next() bool { cp = 0 return true } - |