[go] internal/trace/version: change message to lowercase idiomatic go

1 view
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Dec 27, 2025, 9:42:30 AM (yesterday) Dec 27
to Gerrit Bot, Jorge Pinto, 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 with your PR:

  1. You usually need to reference a bug number for all but trivial or cosmetic fixes. For this repo, the format is usually 'Fixes #12345' or 'Updates #12345' at the end of the commit message. Should you have a bug reference?

Please address any problems by updating 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. These findings are based on heuristics; if a finding does not apply, briefly reply here saying so.

To update the commit title or commit message body shown here in Gerrit, you must edit the GitHub PR title and PR description (the first comment) in the GitHub web interface using the 'Edit' button or 'Edit' menu entry there. Note: pushing a new commit to the PR will not automatically update the commit message used by Gerrit.

For more details, see:

(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: Id74a209ffc217f9bedc06863b00fcd8b083d413c
Gerrit-Change-Number: 732901
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-CC: Gopher Robot <go...@golang.org>
Gerrit-CC: Jorge Pinto <jorg...@gmail.com>
Gerrit-Comment-Date: Sat, 27 Dec 2025 14:42:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Gerrit Bot (Gerrit)

unread,
Dec 27, 2025, 9:42:30 AM (yesterday) Dec 27
to goph...@pubsubhelper.golang.org, Jorge Pinto, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

internal/trace/version: change message to lowercase idiomatic go

Change message to lowercase idiomatic go.
Change-Id: Id74a209ffc217f9bedc06863b00fcd8b083d413c
GitHub-Last-Rev: 3ec92962a3f341352ca4c126b91ddebf8ad23d01
GitHub-Pull-Request: golang/go#77014

Change diff

diff --git a/src/internal/trace/version/version.go b/src/internal/trace/version/version.go
index 328a261..c350260b 100644
--- a/src/internal/trace/version/version.go
+++ b/src/internal/trace/version/version.go
@@ -56,7 +56,7 @@
if int(typ) < len(s) && s[typ].Name != "" {
return s[typ].Name
}
- return fmt.Sprintf("Invalid(%d)", typ)
+ return fmt.Sprintf("invalid(%d)", typ)
}

func (v Version) Valid() bool {

Change information

Files:
  • M src/internal/trace/version/version.go
Change size: XS
Delta: 1 file changed, 1 insertion(+), 1 deletion(-)
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: Id74a209ffc217f9bedc06863b00fcd8b083d413c
    Gerrit-Change-Number: 732901
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Jorge Pinto <jorg...@gmail.com>
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    Jorge Pinto (Gerrit)

    unread,
    Dec 27, 2025, 10:22:40 AM (yesterday) Dec 27
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Michael Pratt, Michael Knyszek, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Michael Knyszek and Michael Pratt

    Jorge Pinto added 1 comment

    Patchset-level comments
    Gopher Robot . resolved

    I spotted some possible problems with your PR:

      1. You usually need to reference a bug number for all but trivial or cosmetic fixes. For this repo, the format is usually 'Fixes #12345' or 'Updates #12345' at the end of the commit message. Should you have a bug reference?

    Please address any problems by updating 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. These findings are based on heuristics; if a finding does not apply, briefly reply here saying so.

    To update the commit title or commit message body shown here in Gerrit, you must edit the GitHub PR title and PR description (the first comment) in the GitHub web interface using the 'Edit' button or 'Edit' menu entry there. Note: pushing a new commit to the PR will not automatically update the commit message used by Gerrit.

    For more details, see:

    (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.)

    Jorge Pinto

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michael Knyszek
    • Michael Pratt
    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: Id74a209ffc217f9bedc06863b00fcd8b083d413c
    Gerrit-Change-Number: 732901
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
    Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Jorge Pinto <jorg...@gmail.com>
    Gerrit-Attention: Michael Pratt <mpr...@google.com>
    Gerrit-Attention: Michael Knyszek <mkny...@google.com>
    Gerrit-Comment-Date: Sat, 27 Dec 2025 15:22:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Gopher Robot <go...@golang.org>
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy

    t hepudds (Gerrit)

    unread,
    Dec 27, 2025, 10:58:42 AM (yesterday) Dec 27
    to Gerrit Bot, Jorge Pinto, goph...@pubsubhelper.golang.org, Michael Pratt, Michael Knyszek, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Michael Knyszek and Michael Pratt

    t hepudds added 1 comment

    File src/internal/trace/version/version.go
    Line 59, Patchset 1 (Latest): return fmt.Sprintf("invalid(%d)", typ)
    t hepudds . unresolved

    I suspect the original author of this code intended to use a capital letter here for `Invalid` (which would make it match valid `s[typ].Name` values, which might be strings like `CPUSamples`, `Frequency`, `ProcStart`, etc.).

    If so, changing the case here would not be an improvement.

    Separately, I noticed you have sent [a dozen or so changes](https://go-review.googlesource.com/q/author:jorg...@gmail.com) in the last day or so that make similar type of changes (e.g., changing the casing of test failure messages, etc.).

    From a quick look, not all of them are improvements.

    I would suggest you hold off on sending more changes until you get feedback on what you've already sent.

    This can help make it more efficient for everyone, including for you and the maintainers. And thank you for your interest in helping to improve Go.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michael Knyszek
    • Michael Pratt
    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: Id74a209ffc217f9bedc06863b00fcd8b083d413c
      Gerrit-Change-Number: 732901
      Gerrit-PatchSet: 1
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
      Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: Jorge Pinto <jorg...@gmail.com>
      Gerrit-CC: t hepudds <thepud...@gmail.com>
      Gerrit-Attention: Michael Pratt <mpr...@google.com>
      Gerrit-Attention: Michael Knyszek <mkny...@google.com>
      Gerrit-Comment-Date: Sat, 27 Dec 2025 15:58:39 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      unsatisfied_requirement
      open
      diffy

      Jorge Pinto (Gerrit)

      unread,
      Dec 27, 2025, 11:09:12 AM (yesterday) Dec 27
      to Gerrit Bot, goph...@pubsubhelper.golang.org, t hepudds, Michael Pratt, Michael Knyszek, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Michael Knyszek, Michael Pratt and t hepudds

      Jorge Pinto added 1 comment

      File src/internal/trace/version/version.go
      Line 59, Patchset 1 (Latest): return fmt.Sprintf("invalid(%d)", typ)
      t hepudds . resolved

      I suspect the original author of this code intended to use a capital letter here for `Invalid` (which would make it match valid `s[typ].Name` values, which might be strings like `CPUSamples`, `Frequency`, `ProcStart`, etc.).

      If so, changing the case here would not be an improvement.

      Separately, I noticed you have sent [a dozen or so changes](https://go-review.googlesource.com/q/author:jorg...@gmail.com) in the last day or so that make similar type of changes (e.g., changing the casing of test failure messages, etc.).

      From a quick look, not all of them are improvements.

      I would suggest you hold off on sending more changes until you get feedback on what you've already sent.

      This can help make it more efficient for everyone, including for you and the maintainers. And thank you for your interest in helping to improve Go.

      Jorge Pinto

      ok, thanks for getting back. I will do that.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Michael Knyszek
      • Michael Pratt
      • t hepudds
      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: Id74a209ffc217f9bedc06863b00fcd8b083d413c
        Gerrit-Change-Number: 732901
        Gerrit-PatchSet: 1
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
        Gerrit-Reviewer: Michael Pratt <mpr...@google.com>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-CC: Jorge Pinto <jorg...@gmail.com>
        Gerrit-CC: t hepudds <thepud...@gmail.com>
        Gerrit-Attention: t hepudds <thepud...@gmail.com>
        Gerrit-Attention: Michael Pratt <mpr...@google.com>
        Gerrit-Attention: Michael Knyszek <mkny...@google.com>
        Gerrit-Comment-Date: Sat, 27 Dec 2025 16:09:09 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: t hepudds <thepud...@gmail.com>
        unsatisfied_requirement
        satisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages