Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
9c2ebab8
Commit
9c2ebab8
authored
Aug 08, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exp/template: document that comments may span newlines.
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/4855045
parent
54e9406f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
doc.go
src/pkg/exp/template/doc.go
+3
-2
No files found.
src/pkg/exp/template/doc.go
View file @
9c2ebab8
...
...
@@ -16,7 +16,7 @@ structure as execution proceeds.
The input text for a template is UTF-8-encoded text in any format.
"Actions"--data evaluations or control structures--are delimited by
"{{" and "}}"; all text outside actions is copied to the output unchanged.
Actions may not span newlines.
Actions may not span newlines
, although comments can
.
Once constructed, templates and template sets can be executed safely in
parallel.
...
...
@@ -28,7 +28,8 @@ data, defined in detail below.
*/
// {{/* a comment */}}
// A comment; discarded. Comments do not nest.
// A comment; discarded. May contain newlines.
// Comments do not nest.
/*
{{pipeline}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment