mirror of
https://github.com/golang/go
synced 2024-11-23 07:40:04 -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:
parent
252eda470a
commit
86b0310185
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user