fmt.Print
Returns the default string representation of the given arguments.
- Syntax
- fmt.Print INPUT
- Returns
- string
- Alias
Usage
The fmt.Print function returns the default string representation of the given arguments. The function adds a space between two adjacent arguments when neither is a string.
Examples
{{ fmt.Print "foo" }} → foo
{{ fmt.Print "foo" "bar" }} → foobar
{{ fmt.Print 1 2 }} → 1 2
{{ fmt.Print (slice 1 2 3) }} → [1 2 3]Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page