...

Text file src/github.com/go-task/slim-sprig/v3/docs/flow_control.md

Documentation: github.com/go-task/slim-sprig/v3/docs

     1# Flow Control Functions
     2
     3## fail
     4
     5Unconditionally returns an empty `string` and an `error` with the specified
     6text. This is useful in scenarios where other conditionals have determined that
     7template rendering should fail.
     8
     9```
    10fail "Please accept the end user license agreement"
    11```

View as plain text