]> Cypherpunks repositories - gostls13.git/commit
test/chan/select5.go: change "with" to "if" in templatea
authorRob Pike <r@golang.org>
Thu, 18 Aug 2011 03:27:18 +0000 (13:27 +1000)
committerRob Pike <r@golang.org>
Thu, 18 Aug 2011 03:27:18 +0000 (13:27 +1000)
commit3f5edd2461159bc24e8dd4274eb857270a1aecb8
tree77d2a6a16918c2c65f13aa4cde423159ad6c5cfd
parentd2a45dbf0831e6570cc6c958f3ed8c5c3fd56dbc
test/chan/select5.go: change "with" to "if" in templatea

I converted this program yesterday and the output is the
same as it used to be, ignoring space, but the result is
not the best expression of the algorithm.  The old {.section
Maybe} pieces are now {{with .Maybe}}, as a direct translation,
but I they should be {{if .Maybe}} as the output is just a
bool and there is no cascading.

I have verified that the output of the program is unaffected.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4889053
test/chan/select5.go