Clarify that print takes 1+ arguments

This was really not clear from the doc before.
This commit is contained in:
Salim B 2019-10-29 14:29:51 +00:00 committed by Bjørn Erik Pedersen
parent de439ab84e
commit de36e6f8f0

View File

@ -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]
``` ```