You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if the isTrue function in text.template were exposed (cf. https://golang.org/src/text/template/exec.go#L212). This would allow custom template functions to easily use the same semantics for truthiness that text.template itself uses for if.
The text was updated successfully, but these errors were encountered:
It would be great if the
isTrue
function intext.template
were exposed (cf. https://golang.org/src/text/template/exec.go#L212). This would allow custom template functions to easily use the same semantics for truthiness thattext.template
itself uses forif
.The text was updated successfully, but these errors were encountered: