Sprig Flow Control

Sprig Flow Control

fail

func fail(arg1 string) string
Unconditionally returns an empty string and an error with the
specified text. This is useful in scenarios where other conditionals
have determined that template rendering should fail.