An open API service indexing awesome lists of open source software.

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

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)