mirror of
https://github.com/golang/go
synced 2024-09-25 15:10:11 -06:00
text/template: fix documentation for pipelines
The header was in the wrong place, so the definition of a pipeline was not in the section labeled "Pipelines". Fixes #13972 Change-Id: Ibca791a4511ca112047b57091c391f6e959fdd78 Reviewed-on: https://go-review.googlesource.com/18775 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
f8f4cfa5be
commit
754216d1d7
@ -64,7 +64,7 @@ space, horizontal tab, carriage return, and newline.
|
|||||||
Actions
|
Actions
|
||||||
|
|
||||||
Here is the list of actions. "Arguments" and "pipelines" are evaluations of
|
Here is the list of actions. "Arguments" and "pipelines" are evaluations of
|
||||||
data, defined in detail below.
|
data, defined in detail in the corresponding sections that follow.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
// {{/* a comment */}}
|
// {{/* a comment */}}
|
||||||
@ -200,6 +200,8 @@ field of a struct, the function is not invoked automatically, but it
|
|||||||
can be used as a truth value for an if action and the like. To invoke
|
can be used as a truth value for an if action and the like. To invoke
|
||||||
it, use the call function, defined below.
|
it, use the call function, defined below.
|
||||||
|
|
||||||
|
Pipelines
|
||||||
|
|
||||||
A pipeline is a possibly chained sequence of "commands". A command is a simple
|
A pipeline is a possibly chained sequence of "commands". A command is a simple
|
||||||
value (argument) or a function or method call, possibly with multiple arguments:
|
value (argument) or a function or method call, possibly with multiple arguments:
|
||||||
|
|
||||||
@ -217,8 +219,6 @@ value (argument) or a function or method call, possibly with multiple arguments:
|
|||||||
function(Argument1, etc.)
|
function(Argument1, etc.)
|
||||||
Functions and function names are described below.
|
Functions and function names are described below.
|
||||||
|
|
||||||
Pipelines
|
|
||||||
|
|
||||||
A pipeline may be "chained" by separating a sequence of commands with pipeline
|
A pipeline may be "chained" by separating a sequence of commands with pipeline
|
||||||
characters '|'. In a chained pipeline, the result of the each command is
|
characters '|'. In a chained pipeline, the result of the each command is
|
||||||
passed as the last argument of the following command. The output of the final
|
passed as the last argument of the following command. The output of the final
|
||||||
|
Loading…
Reference in New Issue
Block a user