]> Cypherpunks repositories - gostls13.git/commit
text/template: add 'nil' as a keyword in the language
authorRob Pike <r@golang.org>
Thu, 9 Aug 2012 03:02:19 +0000 (20:02 -0700)
committerRob Pike <r@golang.org>
Thu, 9 Aug 2012 03:02:19 +0000 (20:02 -0700)
commit18c378c259c0d71eccb25b70c01e1698a0279e7a
tree72d584db7bb99a3e8db8c51c634c296bf6474a4f
parentaf92b29fe63bd68b3892f6773b3da5896db52e6e
text/template: add 'nil' as a keyword in the language
The keyword reprents an untyped nil and is useful for
passing nil values to methods and functions. The
nil will be promoted to the appropriate type when
used; if a type cannot be assigned, an error results.

R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/6459056
src/pkg/text/template/doc.go
src/pkg/text/template/exec.go
src/pkg/text/template/exec_test.go
src/pkg/text/template/funcs.go
src/pkg/text/template/parse/lex.go
src/pkg/text/template/parse/lex_test.go
src/pkg/text/template/parse/node.go
src/pkg/text/template/parse/parse.go
src/pkg/text/template/parse/parse_test.go