print.md (566B)
1 --- 2 title: print 3 linktitle: print 4 description: Prints the default representation of the given arguments using the standard `fmt.Print` function. 5 date: 2017-02-01 6 publishdate: 2017-02-01 7 lastmod: 2017-02-01 8 categories: [functions] 9 menu: 10 docs: 11 parent: "functions" 12 keywords: [strings] 13 signature: ["print INPUT"] 14 workson: [] 15 hugoversion: 16 relatedfuncs: [] 17 deprecated: false 18 --- 19 20 See [the go doc](https://golang.org/pkg/fmt/) for additional information. 21 22 ``` 23 {{ print "foo" }} → "foo" 24 {{ print "foo" "bar" }} → "foobar" 25 {{ print (slice 1 2 3) }} → [1 2 3] 26 ```