sprig icon indicating copy to clipboard operation
sprig copied to clipboard

Useful template functions for Go templates.

Results 196 sprig issues
Sort by recently updated
recently updated
newest added

Attempting to simplify some templates, and currently I have a section that needs to create a duration and perform some math on it, and output certain fields as seconds. As...

Hello, Is this repo still being maintained? Any plans to keep development like merging pull requests?

Experiencing the sprig library as a great tool set so far, I was a bit surprised there are no `toYaml`/`fromYaml` functions in here. It would be great to have them...

# Context Hey, It could be useful to be able to compress/decompress payloads using `gzip`/`gunzip` functions coupled with base64 encoding (existing `b64enc`). # Usage example Store compressed files within kubernetes...

As generics don't seem to be supported by `text/template` yet I produced the following: (Or does anyone know what other library I should be looking at?) Would something like this...

In the dict name1 is the key

Would be nice to have some time comparison functions. For example, this doesn't work, and I don't see a way to do this using sprig as it stands, even though...

URL parsing seemed like something that would be in sprig, but I didn't find it in the docs. When looking for a discussion about it, it turns out the code...

Implement [PBKDF2](https://en.wikipedia.org/wiki/PBKDF2) as cryptographic function See: https://pkg.go.dev/golang.org/x/crypto/pbkdf2