HUGO
Menu
GitHub 90473 stars Mastodon

fmt.Print

Returns the default string representation of the given arguments.
Syntax
fmt.Print INPUT
Returns
string
Alias
print

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]