flow_control.go 177 B

12345678
  1. package sprig
  2. import "errors"
  3. // fail is a function that always returns an error with the given message.
  4. func fail(msg string) (string, error) {
  5. return "", errors.New(msg)
  6. }