summaryrefslogtreecommitdiffstats
path: root/tpl/encoding/encoding_test.go
AgeCommit message (Collapse)Author
2020-04-07tpl: Extend Jsonify to support options mapCameron Moore
Add support for prefix and indent options used by json.MarshalIndent from the Go stdlib.
2020-04-07tpl: Extend Jsonify to support optional indent parameterCameron Moore
Fixes #5040
2019-08-12tests: Convert from testify to quicktestBjørn Erik Pedersen
2018-11-02Revert "tpl: Update Jsonify to return pretty-print output"Bjørn Erik Pedersen
This reverts commit 5a52cd5f920bb3d067ab1682adece9f813c67ba1. Closes #5394
2018-10-21tpl: Update Jsonify to return pretty-print outputSean Prashad
Fixes #5040
2017-05-01tpl: Fix the remaining template funcs namespace issuesBjørn Erik Pedersen
See #3042
2017-04-30tpl: Add template function namespacesCameron Moore
This commit moves almost all of the template functions into separate packages under tpl/ and adds a namespace framework. All changes should be backward compatible for end users, as all existing function names in the template funcMap are left intact. Seq and DoArithmatic have been moved out of the helpers package and into template namespaces. Most of the tests involved have been refactored, and many new tests have been written. There's still work to do, but this is a big improvement. I got a little overzealous and added some new functions along the way: - strings.Contains - strings.ContainsAny - strings.HasSuffix - strings.TrimPrefix - strings.TrimSuffix Documentation is forthcoming. Fixes #3042