Gopher

fmt

Fmt is Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

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  

(a …any) → string

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  

(a …any) → string

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" }}