fmt
fmt.Errorf
(format string, a …any) → string
Errorf formats according to a
format
specifier and logs an ERROR.
It returns an empty string.
Aliases: errorf
Examples
{{ errorf "%s." "failed" }}
fmt.Erroridf
(id string, a …any) → string
Erroridf formats according to a
format specifier and logs an ERROR and
an information text that the error with the given ID can be suppressed in config.
It returns an empty string.
Aliases: erroridf
Examples
{{ erroridf "my-err-id" "%s." "failed" }}
fmt.Print
Print returns string representation of the passed arguments.
Aliases: print
Examples
{{ print "works!" }}
works!
fmt.Printf
(format string, a …any) → string
Printf returns a
formatted string representation of the passed arguments.
Aliases: printf
Examples
{{ printf "%s!" "works" }}
works!
fmt.Println
Println returns string representation of the passed arguments ending with a
newline.
Aliases: println
Examples
{{ println "works!" }}
works!
fmt.Warnf
(format string, a …any) → string
Warnf formats according to a
format
specifier and logs a
WARNING.
It returns an empty string.
Aliases: warnf
Examples
{{ warnf "%s." "warning" }}