min, empty, tuple, dict, more date functions, and better math
This release adds a number of new functions:
min
complementsmax
(formerlybiggest
)empty
indicates that a value is the empty value for its typetuple
creates a tuple inside of a template:{{$t := tuple "a", "b" "c"}}
dict
creates a dictionary inside of a template{{$d := dict "key1" "val1" "key2" "val2"}}
- Date formatters have been added for HTML dates (as used in
date
input fields) - Integer math functions can convert from a number of types, including
string
(viastrconv.ParseInt
).
Because we switched from int
to int64
as the return value for all integer math functions, the library's major version number has been incremented.