• Rob Pike's avatar
    text/template: implement comparison of basic types · 7bbe3206
    Rob Pike authored
    Add eq, lt, etc. to allow one to do simple comparisons.
    It's basic types only (booleans, integers, unsigned integers,
    floats, complex, string) because that's easy, easy to define,
    and covers the great majority of useful cases, while leaving
    open the possibility of a more sweeping definition later.
    
    {{if eq .X .Y}}X and Y are equal{{else}}X and Y are unequal{{end}}
    
    R=golang-dev, adg
    CC=golang-dev
    https://golang.org/cl/13091045
    7bbe3206
Name
Last commit
Last update
..
scanner Loading commit data...
tabwriter Loading commit data...
template Loading commit data...