https://github.com/virtuald/sprig-math
Extends https://github.com/Masterminds/sprig with more math functions and error handling
https://github.com/virtuald/sprig-math
Last synced: 12 months ago
JSON representation
Extends https://github.com/Masterminds/sprig with more math functions and error handling
- Host: GitHub
- URL: https://github.com/virtuald/sprig-math
- Owner: virtuald
- License: other
- Created: 2018-07-06T23:25:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-06T23:34:52.000Z (almost 8 years ago)
- Last Synced: 2025-01-26T11:09:03.341Z (over 1 year ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
sprig-math
==========
Extends the excellent [sprig](https://github.com/Masterminds/sprig) library with
more complex math functions and error handling.
The Go language comes with a [built-in template language](http://golang.org/pkg/text/template/),
but not very many template functions. Sprig and this library provides a group
of commonly used template functions.
Sprig as-is does not return errors when executing mathematical conversions and
functions, and tries to allow execution to continue instead. This isn't ideal for
some applications, and that's where this library comes in.
Author
======
Dustin Spicuzza (dustin@virtualroadside.com)