summaryrefslogtreecommitdiffstats
path: root/tpl/cast/cast_test.go
AgeCommit message (Collapse)Author
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2019-12-12Create lightweight forks of text/template and html/templateBjørn Erik Pedersen
This commit also removes support for Ace and Amber templates. Updates #6594
2019-08-12tests: Convert from testify to quicktestBjørn Erik Pedersen
2017-09-28tpl: Add float template functionLucas Jenss
Add a template function that allows conversion to float. This is useful, for example, when passing aspect ratios into templates, which tend to not be integers. Fixes #3307
2017-05-22tpl/cast: Handle template.HTML and friends in ToIntCameron Moore
Also add tests for ToInt and ToString. Resolves #3308