• Rob Pike's avatar
    exp/template: fixes and updates. · 9495dd31
    Rob Pike authored
    - fix line numbers - forgot to update state.line during execution
    - add a comment convention {{/* comment */}}
    - set.Template returns the named template in the set
    - set.Execute executes the named template in the set
    - use a local methodByName so this package can be used with earlier release of reflect.
    - use initial cap to detect exported names
    
    R=golang-dev, adg
    CC=golang-dev
    https://golang.org/cl/4668054
    9495dd31
lex_test.go 3.4 KB