aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/internal/go_templates/texttemplate/template.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-08-14 11:34:21 +0200
committerBjørn Erik Pedersen <[email protected]>2024-08-15 10:18:19 +0200
commit2168c5b125020a1841450730edc1b0ed2141d239 (patch)
tree7edfa01d9f1e0c921f08a468f9e5202e5569c529 /tpl/internal/go_templates/texttemplate/template.go
parentb3ad58fa04fb2447d1a788d1fe61b2ed581a403e (diff)
downloadhugo-2168c5b125020a1841450730edc1b0ed2141d239.tar.gz
hugo-2168c5b125020a1841450730edc1b0ed2141d239.zip
Upgrade to Go 1.23
Fixes #12763
Diffstat (limited to 'tpl/internal/go_templates/texttemplate/template.go')
-rw-r--r--tpl/internal/go_templates/texttemplate/template.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/internal/go_templates/texttemplate/template.go b/tpl/internal/go_templates/texttemplate/template.go
index 1ba72c194..536932a60 100644
--- a/tpl/internal/go_templates/texttemplate/template.go
+++ b/tpl/internal/go_templates/texttemplate/template.go
@@ -24,7 +24,7 @@ type common struct {
}
// Template is the representation of a parsed template. The *parse.Tree
-// field is exported only for use by html/template and should be treated
+// field is exported only for use by [html/template] and should be treated
// as unexported by all other clients.
type Template struct {
name string
@@ -79,7 +79,7 @@ func (t *Template) init() {
// Clone returns a duplicate of the template, including all associated
// templates. The actual representation is not copied, but the name space of
-// associated templates is, so further calls to Parse in the copy will add
+// associated templates is, so further calls to [Template.Parse] in the copy will add
// templates to the copy but not to the original. Clone can be used to prepare
// common templates and use them with variant definitions for other templates
// by adding the variants after the clone is made.
@@ -157,7 +157,7 @@ func (t *Template) Templates() []*Template {
}
// Delims sets the action delimiters to the specified strings, to be used in
-// subsequent calls to Parse, ParseFiles, or ParseGlob. Nested template
+// subsequent calls to [Template.Parse], [Template.ParseFiles], or [Template.ParseGlob]. Nested template
// definitions will inherit the settings. An empty delimiter stands for the
// corresponding default: {{ or }}.
// The return value is the template, so calls can be chained.