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\nLast updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page