mirror of https://github.com/golang/go.git
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:
parent
252eda470a
commit
86b0310185
|
|
@ -74,8 +74,9 @@ data, defined in detail in the corresponding sections that follow.
|
||||||
/*
|
/*
|
||||||
|
|
||||||
{{pipeline}}
|
{{pipeline}}
|
||||||
The default textual representation of the value of the pipeline
|
The default textual representation (the same as would be
|
||||||
is copied to the output.
|
printed by fmt.Print) of the value of the pipeline is copied
|
||||||
|
to the output.
|
||||||
|
|
||||||
{{if pipeline}} T1 {{end}}
|
{{if pipeline}} T1 {{end}}
|
||||||
If the value of the pipeline is empty, no output is generated;
|
If the value of the pipeline is empty, no output is generated;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue