Skip to content

Commit 94d6267

Browse files
dolmengopherbot
authored andcommitted
text/template: more godoc links
Change-Id: I4f3684ea6cbdcc09985c93fef5107d3bd006699e Reviewed-on: https://go-review.googlesource.com/c/go/+/544735 Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Daniel Martí <[email protected]> Reviewed-by: Rob Pike <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Run-TryBot: Daniel Martí <[email protected]>
1 parent e158cb2 commit 94d6267

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/text/template/doc.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,13 @@ produce the text
438438
By construction, a template may reside in only one association. If it's
439439
necessary to have a template addressable from multiple associations, the
440440
template definition must be parsed multiple times to create distinct *Template
441-
values, or must be copied with the Clone or AddParseTree method.
441+
values, or must be copied with [Template.Clone] or [Template.AddParseTree].
442442
443443
Parse may be called multiple times to assemble the various associated templates;
444-
see the ParseFiles and ParseGlob functions and methods for simple ways to parse
445-
related templates stored in files.
444+
see [ParseFiles], [ParseGlob], [Template.ParseFiles] and [Template.ParseGlob]
445+
for simple ways to parse related templates stored in files.
446446
447-
A template may be executed directly or through ExecuteTemplate, which executes
447+
A template may be executed directly or through [Template.ExecuteTemplate], which executes
448448
an associated template identified by name. To invoke our example above, we
449449
might write,
450450

0 commit comments

Comments
 (0)