diff options
| author | cui fliter <imcusg@gmail.com> | 2023-11-04 16:14:29 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-02-26 20:57:51 +0000 |
| commit | 601eb78de263023fc068c978858e2774faa915c0 (patch) | |
| tree | c4552a8d2e6153042e70e73a208c418d02c0b46e /src/text/template/parse/node.go | |
| parent | 65172c2036d6b084f8a9cd3dcea926961070dcda (diff) | |
| download | go-601eb78de263023fc068c978858e2774faa915c0.tar.xz | |
text: add available godoc link
Change-Id: Idbc110cfc4fd6bbbc8b79807ac14abf7b30e0e65
Reviewed-on: https://go-review.googlesource.com/c/go/+/539855
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/text/template/parse/node.go')
| -rw-r--r-- | src/text/template/parse/node.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text/template/parse/node.go b/src/text/template/parse/node.go index c36688825c..23ba9aec2b 100644 --- a/src/text/template/parse/node.go +++ b/src/text/template/parse/node.go @@ -346,12 +346,12 @@ type IdentifierNode struct { Ident string // The identifier's name. } -// NewIdentifier returns a new IdentifierNode with the given identifier name. +// NewIdentifier returns a new [IdentifierNode] with the given identifier name. func NewIdentifier(ident string) *IdentifierNode { return &IdentifierNode{NodeType: NodeIdentifier, Ident: ident} } -// SetPos sets the position. NewIdentifier is a public method so we can't modify its signature. +// SetPos sets the position. [NewIdentifier] is a public method so we can't modify its signature. // Chained for convenience. // TODO: fix one day? func (i *IdentifierNode) SetPos(pos Pos) *IdentifierNode { @@ -359,7 +359,7 @@ func (i *IdentifierNode) SetPos(pos Pos) *IdentifierNode { return i } -// SetTree sets the parent tree for the node. NewIdentifier is a public method so we can't modify its signature. +// SetTree sets the parent tree for the node. [NewIdentifier] is a public method so we can't modify its signature. // Chained for convenience. // TODO: fix one day? func (i *IdentifierNode) SetTree(t *Tree) *IdentifierNode { |
