[go] text/template: provide example of overwriting template func after parse

8 views
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
Mar 4, 2025, 10:22:34 AM3/4/25
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

text/template: provide example of overwriting template func after parse

This example illustrates how to overwrite a template function after parsing a template.

This example is intended to clarify the point made in the template.Funcs docstring
that "[i]t is legal to overwrite elements of the map."
Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
GitHub-Last-Rev: 45ad2ddb24f0f253b7480d711667d42fac56176d
GitHub-Pull-Request: golang/go#72094

Change diff

diff --git a/src/text/template/examplefunc_test.go b/src/text/template/examplefunc_test.go
index 080b5e3..bf395fb 100644
--- a/src/text/template/examplefunc_test.go
+++ b/src/text/template/examplefunc_test.go
@@ -52,3 +52,47 @@
// Output 1: "The Go Programming Language"
// Output 2: "The Go Programming Language"
}
+
+// This example demonstrates registering two custom template functions
+// and how to overwite one of the functions after the template has been
+// parsed. Overwriting can be used, for example, to alter the operation
+// of cloned templates.
+func ExampleTemplate_funcs() {
+
+ // Define a simple template to test the functions.
+ const tmpl = `{{ . | lc | rpt }}`
+
+ // Define the template funcMap with two functions.
+ var funcMap = template.FuncMap{
+ "rpt": func(s string) string { return strings.Repeat(s, 2) },
+ "lc": strings.ToLower,
+ }
+
+ // Define a New template, add the funcMap using Funcs and then Parse
+ // the template.
+ parsedTmpl, err := template.New("t").Funcs(funcMap).Parse(tmpl)
+ if err != nil {
+ log.Fatal(err)
+ }
+ if err := parsedTmpl.Execute(os.Stdout, "ABC\n"); err != nil {
+ log.Fatal(err)
+ }
+
+ // [Funcs] must be called before a template is parsed to add
+ // functions to the template. [Funcs] can also be used after a
+ // template is parsed to overwrite template functions.
+ //
+ // Here the function identified by "rpt" is overwritten.
+ parsedTmpl.Funcs(template.FuncMap{
+ "rpt": func(s string) string { return strings.Repeat(s, 3) },
+ })
+ if err := parsedTmpl.Execute(os.Stdout, "DEF\n"); err != nil {
+ log.Fatal(err)
+ }
+ // Output:
+ // abc
+ // abc
+ // def
+ // def
+ // def
+}

Change information

Files:
  • M src/text/template/examplefunc_test.go
Change size: S
Delta: 1 file changed, 44 insertions(+), 0 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
Gerrit-Change-Number: 654416
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Gopher Robot (Gerrit)

unread,
Mar 4, 2025, 10:22:36 AM3/4/25
to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gopher Robot added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Gopher Robot . unresolved

I spotted some possible problems.

These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. Otherwise, please address any problems and update the GitHub PR. When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above.

Possible problems detected:
1. Lines in the commit message should be wrapped at ~76 characters unless needed for things like URLs or tables. You have a 87 character line.

The commit title and commit message body come from the GitHub PR title and description, and must be edited in the GitHub web interface (not via git). For instructions, see [here](https://go.dev/wiki/GerritBot/#how-does-gerritbot-determine-the-final-commit-message). For guidelines on commit messages for the Go project, see [here](https://go.dev/doc/contribute#commit_messages).


(In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
    Gerrit-Change-Number: 654416
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Tue, 04 Mar 2025 15:22:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    Mar 4, 2025, 10:24:09 AM3/4/25
    to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Message from Gopher Robot

    Congratulations on opening your first change. Thank you for your contribution!

    Next steps:
    A maintainer will review your change and provide feedback. See
    https://go.dev/doc/contribute#review for more info and tips to get your
    patch through code review.

    Most changes in the Go project go through a few rounds of revision. This can be
    surprising to people new to the project. The careful, iterative review process
    is our way of helping mentor contributors and ensuring that their contributions
    have a lasting impact.

    During May-July and Nov-Jan the Go project is in a code freeze, during which
    little code gets reviewed or merged. If a reviewer responds with a comment like
    R=go1.11 or adds a tag like "wait-release", it means that this CL will be
    reviewed as part of the next development cycle. See https://go.dev/s/release
    for more details.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
    Gerrit-Change-Number: 654416
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Tue, 04 Mar 2025 15:24:05 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    qiu laidongfeng2 (Gerrit)

    unread,
    Mar 4, 2025, 11:23:39 AM3/4/25
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Rob Pike, Daniel Martí, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Rob Pike

    qiu laidongfeng2 voted Commit-Queue+1

    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Rob Pike
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
    Gerrit-Change-Number: 654416
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Rob Pike <r...@golang.org>
    Gerrit-Reviewer: qiu laidongfeng2 <26454...@qq.com>
    Gerrit-CC: Daniel Martí <mv...@mvdan.cc>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Attention: Rob Pike <r...@golang.org>
    Gerrit-Comment-Date: Tue, 04 Mar 2025 16:23:33 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Ian Lance Taylor (Gerrit)

    unread,
    Mar 4, 2025, 1:28:31 PM3/4/25
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Ian Lance Taylor, Go LUCI, qiu laidongfeng2, Rob Pike, Daniel Martí, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Rob Pike

    Ian Lance Taylor added 1 comment

    Patchset-level comments
    Gopher Robot . resolved

    I spotted some possible problems.

    These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. Otherwise, please address any problems and update the GitHub PR. When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above.

    Possible problems detected:
    1. Lines in the commit message should be wrapped at ~76 characters unless needed for things like URLs or tables. You have a 87 character line.

    The commit title and commit message body come from the GitHub PR title and description, and must be edited in the GitHub web interface (not via git). For instructions, see [here](https://go.dev/wiki/GerritBot/#how-does-gerritbot-determine-the-final-commit-message). For guidelines on commit messages for the Go project, see [here](https://go.dev/doc/contribute#commit_messages).


    (In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

    Ian Lance Taylor

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Rob Pike
    Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
      Gerrit-Change-Number: 654416
      Gerrit-PatchSet: 1
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Rob Pike <r...@golang.org>
      Gerrit-Reviewer: qiu laidongfeng2 <26454...@qq.com>
      Gerrit-CC: Daniel Martí <mv...@mvdan.cc>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
      Gerrit-Attention: Rob Pike <r...@golang.org>
      Gerrit-Comment-Date: Tue, 04 Mar 2025 18:28:26 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Gopher Robot <go...@golang.org>
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Ian Lance Taylor (Gerrit)

      unread,
      Mar 4, 2025, 1:29:45 PM3/4/25
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Ian Lance Taylor, Go LUCI, qiu laidongfeng2, Rob Pike, Daniel Martí, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Rob Pike

      Ian Lance Taylor added 1 comment

      File src/text/template/examplefunc_test.go
      Line 63, Patchset 1 (Latest): const tmpl = `{{ . | lc | rpt }}`
      Ian Lance Taylor . unresolved

      I think the example will be a bit clearer with longer names. How about

          {{ . | lower | repeat }}
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Rob Pike
      Submit Requirements:
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        • requirement satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: go
        Gerrit-Branch: master
        Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
        Gerrit-Change-Number: 654416
        Gerrit-PatchSet: 1
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Rob Pike <r...@golang.org>
        Gerrit-Reviewer: qiu laidongfeng2 <26454...@qq.com>
        Gerrit-CC: Daniel Martí <mv...@mvdan.cc>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
        Gerrit-Attention: Rob Pike <r...@golang.org>
        Gerrit-Comment-Date: Tue, 04 Mar 2025 18:29:41 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        unsatisfied_requirement
        satisfied_requirement
        open
        diffy

        Gerrit Bot (Gerrit)

        unread,
        Mar 4, 2025, 5:47:26 PM3/4/25
        to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
        Attention needed from Rob Pike and qiu laidongfeng2

        Gerrit Bot uploaded new patchset

        Gerrit Bot uploaded patch set #2 to this change.
        Following approvals got outdated and were removed:
        • TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Rob Pike
        • qiu laidongfeng2
        Submit Requirements:
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          • requirement is not satisfiedTryBots-Pass
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: newpatchset
          Gerrit-Project: go
          Gerrit-Branch: master
          Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
          Gerrit-Change-Number: 654416
          Gerrit-PatchSet: 2
          Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
          Gerrit-Reviewer: Rob Pike <r...@golang.org>
          Gerrit-Reviewer: qiu laidongfeng2 <26454...@qq.com>
          Gerrit-CC: Daniel Martí <mv...@mvdan.cc>
          Gerrit-CC: Gopher Robot <go...@golang.org>
          Gerrit-CC: Ian Lance Taylor <ia...@golang.org>
          Gerrit-Attention: Rob Pike <r...@golang.org>
          Gerrit-Attention: qiu laidongfeng2 <26454...@qq.com>
          unsatisfied_requirement
          open
          diffy

          Ian Lance Taylor (Gerrit)

          unread,
          Mar 4, 2025, 6:09:04 PM3/4/25
          to Gerrit Bot, goph...@pubsubhelper.golang.org, Ian Lance Taylor, Go LUCI, qiu laidongfeng2, Rob Pike, Daniel Martí, Gopher Robot, golang-co...@googlegroups.com
          Attention needed from Rob Pike and qiu laidongfeng2

          Ian Lance Taylor voted and added 1 comment

          Votes added by Ian Lance Taylor

          Commit-Queue+1

          1 comment

          File src/text/template/examplefunc_test.go
          Line 63, Patchset 1: const tmpl = `{{ . | lc | rpt }}`
          Ian Lance Taylor . resolved

          I think the example will be a bit clearer with longer names. How about

              {{ . | lower | repeat }}
          Ian Lance Taylor

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Rob Pike
          • qiu laidongfeng2
          Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            • requirement is not satisfiedTryBots-Pass
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: go
            Gerrit-Branch: master
            Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
            Gerrit-Change-Number: 654416
            Gerrit-PatchSet: 2
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
            Gerrit-Reviewer: Rob Pike <r...@golang.org>
            Gerrit-Reviewer: qiu laidongfeng2 <26454...@qq.com>
            Gerrit-CC: Daniel Martí <mv...@mvdan.cc>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-Attention: Rob Pike <r...@golang.org>
            Gerrit-Attention: qiu laidongfeng2 <26454...@qq.com>
            Gerrit-Comment-Date: Tue, 04 Mar 2025 23:09:00 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Ian Lance Taylor <ia...@golang.org>
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Ian Lance Taylor (Gerrit)

            unread,
            Mar 4, 2025, 11:10:07 PM3/4/25
            to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Ian Lance Taylor, qiu laidongfeng2, Rob Pike, Daniel Martí, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Rob Pike and qiu laidongfeng2

            Ian Lance Taylor voted and added 1 comment

            Votes added by Ian Lance Taylor

            Auto-Submit+1
            Code-Review+2

            1 comment

            Patchset-level comments
            Ian Lance Taylor . resolved

            Related details

            Attention is currently required from:
            • Rob Pike
            • qiu laidongfeng2
            Submit Requirements:
            • requirement satisfiedCode-Review
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            • requirement satisfiedTryBots-Pass
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: go
            Gerrit-Branch: master
            Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
            Gerrit-Change-Number: 654416
            Gerrit-PatchSet: 2
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
            Gerrit-Reviewer: Ian Lance Taylor <ia...@google.com>
            Gerrit-Reviewer: Rob Pike <r...@golang.org>
            Gerrit-Reviewer: qiu laidongfeng2 <26454...@qq.com>
            Gerrit-CC: Daniel Martí <mv...@mvdan.cc>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-Attention: Rob Pike <r...@golang.org>
            Gerrit-Attention: qiu laidongfeng2 <26454...@qq.com>
            Gerrit-Comment-Date: Wed, 05 Mar 2025 04:10:01 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Junyang Shao (Gerrit)

            unread,
            Mar 5, 2025, 10:57:48 AM3/5/25
            to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Ian Lance Taylor, qiu laidongfeng2, Rob Pike, Daniel Martí, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Rob Pike and qiu laidongfeng2

            Junyang Shao voted Code-Review+1

            Code-Review+1
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Rob Pike
            • qiu laidongfeng2
            Submit Requirements:
              • requirement satisfiedCode-Review
              • requirement satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              • requirement satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: go
              Gerrit-Branch: master
              Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
              Gerrit-Change-Number: 654416
              Gerrit-PatchSet: 2
              Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
              Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
              Gerrit-Reviewer: Ian Lance Taylor <ia...@google.com>
              Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
              Gerrit-Reviewer: Rob Pike <r...@golang.org>
              Gerrit-Reviewer: qiu laidongfeng2 <26454...@qq.com>
              Gerrit-CC: Daniel Martí <mv...@mvdan.cc>
              Gerrit-CC: Gopher Robot <go...@golang.org>
              Gerrit-Attention: Rob Pike <r...@golang.org>
              Gerrit-Attention: qiu laidongfeng2 <26454...@qq.com>
              Gerrit-Comment-Date: Wed, 05 Mar 2025 15:57:42 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Gopher Robot (Gerrit)

              unread,
              Mar 5, 2025, 10:58:11 AM3/5/25
              to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Junyang Shao, Go LUCI, Ian Lance Taylor, qiu laidongfeng2, Rob Pike, Daniel Martí, golang-co...@googlegroups.com

              Gopher Robot submitted the change

              Change information

              Commit message:
              text/template: provide example of overwriting template func after parse

              This example illustrates how to overwrite a template function after parsing a template.

              This example is intended to clarify the point made in the template.Funcs docstring
              that "[i]t is legal to overwrite elements of the map."
              Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
              GitHub-Last-Rev: ef19a221ab44f47695c27b3114281112231a1b42
              GitHub-Pull-Request: golang/go#72094
              Reviewed-by: Junyang Shao <shaoj...@google.com>
              Auto-Submit: Ian Lance Taylor <ia...@google.com>
              Reviewed-by: Ian Lance Taylor <ia...@google.com>
              Files:
              • M src/text/template/examplefunc_test.go
              Change size: S
              Delta: 1 file changed, 44 insertions(+), 0 deletions(-)
              Branch: refs/heads/master
              Submit Requirements:
              • requirement satisfiedCode-Review: +2 by Ian Lance Taylor, +1 by Junyang Shao
              • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
              Open in Gerrit
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: merged
              Gerrit-Project: go
              Gerrit-Branch: master
              Gerrit-Change-Id: Ibded05974d580c54a24fcc16687fd52ce21133ff
              Gerrit-Change-Number: 654416
              Gerrit-PatchSet: 3
              Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
              Gerrit-Reviewer: Gopher Robot <go...@golang.org>
              open
              diffy
              satisfied_requirement
              Reply all
              Reply to author
              Forward
              0 new messages