sprig icon indicating copy to clipboard operation
sprig copied to clipboard

Useful template functions for Go templates.

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

I am using Helm and found the following problems with the toDate function: In my understanding the following template snippet should output the same independent of the client system time...

Adding error handling for the getHostByName function

I am following up form a request to the helm guys in https://github.com/helm/helm/issues/9737 Here, I am using ``` rbi-env [ingress✗]➜ helm version version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"dirty", GoVersion:"go1.16.3"} ``` I would like...

No need to convert output to a string, it already is.

Adds a toBool function. Didn't really see any nice way to add test, but it simply delegates to cast. Other changes due to running `go fmt`. Fixes #258.

I just stumbled over following problem with `semverCompare`. ### Summary If a have a short version string (only major and minor) and the other operator is a very long, but...

The last commit was on July 6. Is it still a live project ?

Addresses issue: https://github.com/Masterminds/sprig/issues/300

closes #269 However, I could not verify for ` math.MaxInt64` as it wraps around and gives some negative duration on my system for that value.