HUGO
Menu
GitHub 90418 stars Mastodon

fmt.Println

Returns the default string representation of the given arguments, followed by a line break.
Syntax
fmt.Println INPUT
Returns
string
Alias
println

Usage

The fmt.Println function returns the default string representation of the given arguments, followed by a line break. The function always adds a space between adjacent arguments.

Examples

{{ fmt.Println "foo" }} → foo\n
{{ fmt.Println "foo" "bar" }} → foo bar\n
{{ fmt.Println 1 2 }} → 1 2\n