protoc-gen-go-micro/vendor/github.com/Masterminds/sprig/docs/flow_control.md

12 lines
284 B
Markdown
Raw Normal View History

2017-05-18 19:54:23 +03:00
# Flow Control Functions
## fail
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.
```
fail "Please accept the end user license agreement"
```