From 94d6267060a619ef89ef296ed4691734e6be8de2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Mengu=C3=A9?= Date: Thu, 23 Nov 2023 09:17:56 +0100 Subject: [PATCH] text/template: more godoc links MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I4f3684ea6cbdcc09985c93fef5107d3bd006699e Reviewed-on: https://go-review.googlesource.com/c/go/+/544735 Reviewed-by: Dmitri Shuralyov TryBot-Result: Gopher Robot Auto-Submit: Daniel Martí Reviewed-by: Rob Pike Reviewed-by: Michael Knyszek Reviewed-by: Daniel Martí Run-TryBot: Daniel Martí --- src/text/template/doc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/text/template/doc.go b/src/text/template/doc.go index 4c01b05ebf..032784bc3f 100644 --- a/src/text/template/doc.go +++ b/src/text/template/doc.go @@ -438,13 +438,13 @@ produce the text By construction, a template may reside in only one association. If it's necessary to have a template addressable from multiple associations, the template definition must be parsed multiple times to create distinct *Template -values, or must be copied with the Clone or AddParseTree method. +values, or must be copied with [Template.Clone] or [Template.AddParseTree]. Parse may be called multiple times to assemble the various associated templates; -see the ParseFiles and ParseGlob functions and methods for simple ways to parse -related templates stored in files. +see [ParseFiles], [ParseGlob], [Template.ParseFiles] and [Template.ParseGlob] +for simple ways to parse related templates stored in files. -A template may be executed directly or through ExecuteTemplate, which executes +A template may be executed directly or through [Template.ExecuteTemplate], which executes an associated template identified by name. To invoke our example above, we might write, -- 2.50.0