1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:20:11 -07:00

text/template: clarify the default formatting used for values

Fixes #16105.

Change-Id: I94467f2adf861eb38f3119ad30d46a87456d5305
Reviewed-on: https://go-review.googlesource.com/24281
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Rob Pike 2016-06-20 15:39:03 -07:00
parent 252eda470a
commit 86b0310185

View File

@ -74,8 +74,9 @@ data, defined in detail in the corresponding sections that follow.
/*
{{pipeline}}
The default textual representation of the value of the pipeline
is copied to the output.
The default textual representation (the same as would be
printed by fmt.Print) of the value of the pipeline is copied
to the output.
{{if pipeline}} T1 {{end}}
If the value of the pipeline is empty, no output is generated;