sprig
sprig copied to clipboard
Useful template functions for Go templates.
## Expected Behavior ``` foo-bar -> fooBar ``` ## Actual Behavior ``` foo-bar -> FooBar ``` ## Rationale The `camelcase` function should return the string with the first letter being...
"snakecase" documentation refers to camelCase to suggest the transformation of _someString_ to _some_string_ but then "camelcase" documentation refers to CamelCase suggesting _some_string_ is converted to _SomeString_ I tested this with...
Not sure what the issue is exactly because I'm not a go expert but what I got from https://github.com/hairyhenderson/gomplate/issues/283#issuecomment-380922738 is that if sprig exported individual functions (or something like that)...
Hello, I'd like to request that an absolute value function be added. Thanks
Hi sprig maintainer, I think it would be handy to add md5sum to sprig. While md5sum is not the most up to date hash function, it is still in use...
I've encountered many occasions where it would be useful to check that a value is not empty without using "if ... fail" combining two templates (three actually: if value set...
Currently, I have to do something like: ```go {{ not ( not (env "CODESPACES") ) }} # or {{ env "CODESPACES" | not | not }} ``` To convert a...
Hello, and thank you for this great lib. I would have found it useful to have some IP / network calculation functions built into Sprig. In the idea, it could...
A function that can generate the `htpasswd` type hash from username & password would be great. In Kubernetes Helm charts, this would help in configuring basic auth for ingress resources.