mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Clarify that print takes 1+ arguments
This was really not clear from the doc before.
This commit is contained in:
1 parent
de439ab84e
commit
de36e6f8f0
1 file changed
+2
-1
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: print
|
title: print
|
||||||
linktitle: print
|
linktitle: print
|
||||||
description: Prints the default representation of the given argument using the standard `fmt.Print` function.
|
description: Prints the default representation of the given arguments using the standard `fmt.Print` function.
|
||||||
godocref: https://golang.org/pkg/fmt/
|
godocref: https://golang.org/pkg/fmt/
|
||||||
date: 2017-02-01
|
date: 2017-02-01
|
||||||
publishdate: 2017-02-01
|
publishdate: 2017-02-01
|
||||||
@@ -22,5 +22,6 @@ See [the go doc](https://golang.org/pkg/fmt/) for additional information.
|
|||||||
|
|
||||||
```
|
```
|
||||||
{{ print "foo" }} → "foo"
|
{{ print "foo" }} → "foo"
|
||||||
|
{{ print "foo" "bar" }} → "foobar"
|
||||||
{{ print (slice 1 2 3) }} → [1 2 3]
|
{{ print (slice 1 2 3) }} → [1 2 3]
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user