diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-04-20 15:44:41 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-04-20 15:44:41 +0200 |
commit | 50104cc32a498f7517a51c8dc93106c51c7a54b4 (patch) | |
tree | 47af80be259cc7c45d0eaec7d42e61fa38c8e4fb /src/pkg/template/template.go | |
parent | c072558b90f1bbedc2022b0f30c8b1ac4712538e (diff) | |
download | golang-upstream/2011.03.07.1.tar.gz |
Imported Upstream version 2011.03.07.1upstream/2011.03.07.1
Diffstat (limited to 'src/pkg/template/template.go')
-rw-r--r-- | src/pkg/template/template.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pkg/template/template.go b/src/pkg/template/template.go index 36fd06dc2..c3cb8901a 100644 --- a/src/pkg/template/template.go +++ b/src/pkg/template/template.go @@ -24,7 +24,8 @@ - The result of invoking a niladic single-valued method with that name (result = data.field()) - Major constructs ({} are metacharacters; [] marks optional elements): + Major constructs ({} are the default delimiters for template actions; + [] are the notation in this comment for optional elements): {# comment } @@ -74,6 +75,11 @@ Multiple formatters separated by the pipeline character | are executed sequentially, with each formatter receiving the bytes emitted by the one to its left. + + The delimiter strings get their default value, "{" and "}", from + JSON-template. They may be set to any non-empty, space-free + string using the SetDelims method. Their value can be printed + in the output using {.meta-left} and {.meta-right}. */ package template |