[go] math/big: add Floor and Ceil methods to Rat

6 views
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
Dec 13, 2025, 12:01:04 PM (6 days ago) Dec 13
to goph...@pubsubhelper.golang.org, armin, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

math/big: add Floor and Ceil methods to Rat

Adds methods for floor and ceil of a rational number r, floor(r) is the
largest integer <= r and ceil(r) is the smallest integer >= r.
Change-Id: I7de80d76450f851d262b43a0685a0dc2218493f6
GitHub-Last-Rev: 036359ea1f4d99d332dc303aefda133dd5c1a9f3
GitHub-Pull-Request: golang/go#76820

Change diff

diff --git a/src/math/big/rat.go b/src/math/big/rat.go
index c7f79a5..1a8e2a6 100644
--- a/src/math/big/rat.go
+++ b/src/math/big/rat.go
@@ -559,3 +559,18 @@
z.a.neg = a.neg != b.neg
return z.norm()
}
+
+// Floor returns the largest [Int] <= z.
+func (z *Rat) Floor() *Int {
+ // z.b is positive, so Euclidean division == floor division
+ return new(Int).Div(&z.a, &z.b)
+}
+
+// Ceil returns the smallest [Int] >= z.
+func (z *Rat) Ceil() *Int {
+ if z.IsInt() {
+ return new(Int).Set(&z.a)
+ }
+ f := z.Floor()
+ return f.Add(f, intOne)
+}
diff --git a/src/math/big/rat_test.go b/src/math/big/rat_test.go
index d98c89b..0431ab9 100644
--- a/src/math/big/rat_test.go
+++ b/src/math/big/rat_test.go
@@ -744,3 +744,53 @@
<-c
}
}
+
+var ratFloorTests = []struct {
+ rat string
+ out int64
+}{
+ {"123456.78", 123456},
+ {"100.5", 100},
+ {"5645.0222", 5645},
+ {"89898989", 89898989},
+ {"0", 0},
+ {"-123456.78", -123457},
+ {"-100.5", -101},
+ {"-5645.0222", -5646},
+ {"-89898989", -89898989},
+}
+
+func TestRatFloor(t *testing.T) {
+ for i, test := range ratFloorTests {
+ x, _ := new(Rat).SetString(test.rat)
+ out := x.Floor()
+ if out.Cmp(NewInt(test.out)) != 0 {
+ t.Errorf("#%d got out = %v; want %v", i, out, test.out)
+ }
+ }
+}
+
+var ratCeilTests = []struct {
+ rat string
+ out int64
+}{
+ {"123456.78", 123457},
+ {"100.5", 101},
+ {"5645.0222", 5646},
+ {"89898989", 89898989},
+ {"0", 0},
+ {"-123456.78", -123456},
+ {"-100.5", -100},
+ {"-5645.0222", -5645},
+ {"-89898989", -89898989},
+}
+
+func TestRatCeil(t *testing.T) {
+ for i, test := range ratCeilTests {
+ x, _ := new(Rat).SetString(test.rat)
+ out := x.Ceil()
+ if out.Cmp(NewInt(test.out)) != 0 {
+ t.Errorf("#%d got out = %v; want %v", i, out, test.out)
+ }
+ }
+}

Change information

Files:
  • M src/math/big/rat.go
  • M src/math/big/rat_test.go
Change size: M
Delta: 2 files changed, 65 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: I7de80d76450f851d262b43a0685a0dc2218493f6
Gerrit-Change-Number: 729860
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-CC: armin <armingu...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Gopher Robot (Gerrit)

unread,
Dec 13, 2025, 12:01:06 PM (6 days ago) Dec 13
to armin, 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 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: I7de80d76450f851d262b43a0685a0dc2218493f6
    Gerrit-Change-Number: 729860
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: armin <armingu...@gmail.com>
    Gerrit-Comment-Date: Sat, 13 Dec 2025 17:01:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    Dec 13, 2025, 12:03:01 PM (6 days ago) Dec 13
    to armin, 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: I7de80d76450f851d262b43a0685a0dc2218493f6
    Gerrit-Change-Number: 729860
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: armin <armingu...@gmail.com>
    Gerrit-Comment-Date: Sat, 13 Dec 2025 17:02:56 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Dec 13, 2025, 12:09:15 PM (6 days ago) Dec 13
    to armin, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #2 to this change.
    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: newpatchset
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I7de80d76450f851d262b43a0685a0dc2218493f6
    Gerrit-Change-Number: 729860
    Gerrit-PatchSet: 2
    unsatisfied_requirement
    open
    diffy

    armin (Gerrit)

    unread,
    Dec 13, 2025, 12:09:18 PM (6 days ago) Dec 13
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Gopher Robot, golang-co...@googlegroups.com

    armin added 1 comment

    Patchset-level comments
    File-level comment, Patchset 1:
    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.)

    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: comment
      Gerrit-Project: go
      Gerrit-Branch: master
      Gerrit-Change-Id: I7de80d76450f851d262b43a0685a0dc2218493f6
      Gerrit-Change-Number: 729860
      Gerrit-PatchSet: 1
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-CC: armin <armingu...@gmail.com>
      Gerrit-Comment-Date: Sat, 13 Dec 2025 17:09:10 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Gopher Robot <go...@golang.org>
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Alan Donovan (Gerrit)

      unread,
      Dec 14, 2025, 9:42:06 PM (4 days ago) Dec 14
      to Armin Günther, Gerrit Bot, goph...@pubsubhelper.golang.org, Robert Griesemer, Filippo Valsorda, Roland Shoemaker, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Robert Griesemer

      Alan Donovan added 3 comments

      Patchset-level comments
      File-level comment, Patchset 2 (Latest):
      Alan Donovan . resolved

      This looks reasonable; it will need to wait for the proposal to be accepted, and for the go1.26 freeze to end (in Feb) before we merge it though.

      File src/math/big/rat.go
      Line 563, Patchset 2 (Latest):// Floor returns the largest [Int] <= z.
      func (z *Rat) Floor() *Int {

      // z.b is positive, so Euclidean division == floor division
      return new(Int).Div(&z.a, &z.b)

      }

      // Ceil returns the smallest [Int] >= z.
      func (z *Rat) Ceil() *Int {
      Alan Donovan . resolved

      (Following Num and Denom, it seems fine not to accept an additional destination *Int variable, which is an allocation optimization.)

      File src/math/big/rat_test.go
      Line 748, Patchset 2 (Latest):var ratFloorTests = []struct {
      Alan Donovan . unresolved

      This can be a local variable (or literal) of the test. Ditto Ceil.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Robert Griesemer
      Submit Requirements:
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedNo-Wait-Release
        • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
        Gerrit-Change-Number: 729860
        Gerrit-PatchSet: 2
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
        Gerrit-CC: Alan Donovan <adon...@google.com>
        Gerrit-CC: Armin Günther <armingu...@gmail.com>
        Gerrit-CC: Filippo Valsorda <fil...@golang.org>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-CC: Roland Shoemaker <rol...@golang.org>
        Gerrit-Attention: Robert Griesemer <g...@golang.org>
        Gerrit-Comment-Date: Mon, 15 Dec 2025 02:42:00 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        unsatisfied_requirement
        open
        diffy

        Alan Donovan (Gerrit)

        unread,
        Dec 14, 2025, 9:42:08 PM (4 days ago) Dec 14
        to Armin Günther, Gerrit Bot, goph...@pubsubhelper.golang.org, Robert Griesemer, Filippo Valsorda, Roland Shoemaker, Gopher Robot, golang-co...@googlegroups.com
        Attention needed from Robert Griesemer

        Alan Donovan voted Hold+1

        Related details

        Attention is currently required from:
        • Robert Griesemer
        Submit Requirements:
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Holds
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedNo-Wait-Release
          • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
          Gerrit-Change-Number: 729860
          Gerrit-PatchSet: 2
          Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
          Gerrit-Reviewer: Alan Donovan <adon...@google.com>
          Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
          Gerrit-CC: Armin Günther <armingu...@gmail.com>
          Gerrit-CC: Filippo Valsorda <fil...@golang.org>
          Gerrit-CC: Gopher Robot <go...@golang.org>
          Gerrit-CC: Roland Shoemaker <rol...@golang.org>
          Gerrit-Attention: Robert Griesemer <g...@golang.org>
          Gerrit-Comment-Date: Mon, 15 Dec 2025 02:42:04 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          unsatisfied_requirement
          open
          diffy

          Gerrit Bot (Gerrit)

          unread,
          Dec 15, 2025, 12:07:49 PM (4 days ago) Dec 15
          to Armin Günther, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
          Attention needed from Alan Donovan and Robert Griesemer

          Gerrit Bot uploaded new patchset

          Gerrit Bot uploaded patch set #3 to this change.
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Alan Donovan
          • Robert Griesemer
          Submit Requirements:
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Holds
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedNo-Wait-Release
          • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
          Gerrit-Change-Number: 729860
          Gerrit-PatchSet: 3
          Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
          Gerrit-Reviewer: Alan Donovan <adon...@google.com>
          Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
          Gerrit-CC: Armin Günther <armingu...@gmail.com>
          Gerrit-CC: Filippo Valsorda <fil...@golang.org>
          Gerrit-CC: Gopher Robot <go...@golang.org>
          Gerrit-CC: Roland Shoemaker <rol...@golang.org>
          Gerrit-Attention: Robert Griesemer <g...@golang.org>
          Gerrit-Attention: Alan Donovan <adon...@google.com>
          unsatisfied_requirement
          open
          diffy

          Armin Günther (Gerrit)

          unread,
          Dec 15, 2025, 12:09:09 PM (4 days ago) Dec 15
          to Gerrit Bot, goph...@pubsubhelper.golang.org, Alan Donovan, Robert Griesemer, Filippo Valsorda, Roland Shoemaker, Gopher Robot, golang-co...@googlegroups.com
          Attention needed from Alan Donovan and Robert Griesemer

          Armin Günther added 1 comment

          File src/math/big/rat_test.go
          Line 748, Patchset 2:var ratFloorTests = []struct {
          Alan Donovan . resolved

          This can be a local variable (or literal) of the test. Ditto Ceil.

          Armin Günther

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Alan Donovan
          • Robert Griesemer
          Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 2
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Alan Donovan <adon...@google.com>
            Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
            Gerrit-CC: Armin Günther <armingu...@gmail.com>
            Gerrit-CC: Filippo Valsorda <fil...@golang.org>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: Roland Shoemaker <rol...@golang.org>
            Gerrit-Attention: Robert Griesemer <g...@golang.org>
            Gerrit-Attention: Alan Donovan <adon...@google.com>
            Gerrit-Comment-Date: Mon, 15 Dec 2025 17:09:00 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Alan Donovan <adon...@google.com>
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Alan Donovan (Gerrit)

            unread,
            Dec 15, 2025, 12:16:52 PM (4 days ago) Dec 15
            to Armin Günther, Gerrit Bot, goph...@pubsubhelper.golang.org, Robert Griesemer, Filippo Valsorda, Roland Shoemaker, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Robert Griesemer

            Alan Donovan voted and added 1 comment

            Votes added by Alan Donovan

            Hold+1

            1 comment

            Patchset-level comments
            File-level comment, Patchset 3 (Latest):
            Alan Donovan . resolved

            Code LGTM. Could you also add a release note (in GOROOT/doc/next) and an API manifest (in GOROOT/api/next)? The manifest should mention the issue number of the proposal, which is now the blocker.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 3
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Alan Donovan <adon...@google.com>
            Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
            Gerrit-CC: Armin Günther <armingu...@gmail.com>
            Gerrit-CC: Filippo Valsorda <fil...@golang.org>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: Roland Shoemaker <rol...@golang.org>
            Gerrit-Attention: Robert Griesemer <g...@golang.org>
            Gerrit-Comment-Date: Mon, 15 Dec 2025 17:16:49 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Gerrit Bot (Gerrit)

            unread,
            Dec 15, 2025, 1:51:06 PM (4 days ago) Dec 15
            to Armin Günther, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
            Attention needed from Alan Donovan and Robert Griesemer

            Gerrit Bot uploaded new patchset

            Gerrit Bot uploaded patch set #4 to this change.
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Alan Donovan
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 4
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Alan Donovan <adon...@google.com>
            Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
            Gerrit-CC: Armin Günther <armingu...@gmail.com>
            Gerrit-CC: Filippo Valsorda <fil...@golang.org>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: Roland Shoemaker <rol...@golang.org>
            Gerrit-Attention: Robert Griesemer <g...@golang.org>
            Gerrit-Attention: Alan Donovan <adon...@google.com>
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Armin Günther (Gerrit)

            unread,
            Dec 15, 2025, 1:52:35 PM (4 days ago) Dec 15
            to Gerrit Bot, goph...@pubsubhelper.golang.org, Alan Donovan, Robert Griesemer, Filippo Valsorda, Roland Shoemaker, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Alan Donovan and Robert Griesemer

            Armin Günther added 1 comment

            Patchset-level comments
            Alan Donovan . resolved

            Code LGTM. Could you also add a release note (in GOROOT/doc/next) and an API manifest (in GOROOT/api/next)? The manifest should mention the issue number of the proposal, which is now the blocker.

            Armin Günther

            Done. (I think?)

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Alan Donovan
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 3
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Alan Donovan <adon...@google.com>
            Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
            Gerrit-CC: Armin Günther <armingu...@gmail.com>
            Gerrit-CC: Filippo Valsorda <fil...@golang.org>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: Roland Shoemaker <rol...@golang.org>
            Gerrit-Attention: Robert Griesemer <g...@golang.org>
            Gerrit-Attention: Alan Donovan <adon...@google.com>
            Gerrit-Comment-Date: Mon, 15 Dec 2025 18:52:28 +0000
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Alan Donovan (Gerrit)

            unread,
            Dec 15, 2025, 1:58:04 PM (4 days ago) Dec 15
            to Armin Günther, Gerrit Bot, goph...@pubsubhelper.golang.org, Robert Griesemer, Filippo Valsorda, Roland Shoemaker, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Robert Griesemer

            Alan Donovan voted and added 1 comment

            Votes added by Alan Donovan

            Hold+1

            1 comment

            Patchset-level comments
            File-level comment, Patchset 4 (Latest):
            Alan Donovan . resolved

            Perfect. Now... we wait.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 4
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Alan Donovan <adon...@google.com>
            Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
            Gerrit-CC: Armin Günther <armingu...@gmail.com>
            Gerrit-CC: Filippo Valsorda <fil...@golang.org>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: Roland Shoemaker <rol...@golang.org>
            Gerrit-Attention: Robert Griesemer <g...@golang.org>
            Gerrit-Comment-Date: Mon, 15 Dec 2025 18:58:01 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Armin Günther (Gerrit)

            unread,
            Dec 17, 2025, 1:07:00 PM (2 days ago) Dec 17
            to Gerrit Bot, goph...@pubsubhelper.golang.org, Alan Donovan, Robert Griesemer, Filippo Valsorda, Roland Shoemaker, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Robert Griesemer

            Armin Günther added 1 comment

            Patchset-level comments
            Armin Günther . resolved

            Updated according to issue.

            Gerrit-Comment-Date: Wed, 17 Dec 2025 18:06:52 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Gerrit Bot (Gerrit)

            unread,
            Dec 17, 2025, 1:11:31 PM (2 days ago) Dec 17
            to Armin Günther, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
            Attention needed from Alan Donovan and Robert Griesemer

            Gerrit Bot uploaded new patchset

            Gerrit Bot uploaded patch set #5 to this change.
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Alan Donovan
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 5
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Alan Donovan <adon...@google.com>
            Gerrit-Reviewer: Robert Griesemer <g...@golang.org>
            Gerrit-CC: Armin Günther <armingu...@gmail.com>
            Gerrit-CC: Filippo Valsorda <fil...@golang.org>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-CC: Roland Shoemaker <rol...@golang.org>
            Gerrit-Attention: Robert Griesemer <g...@golang.org>
            Gerrit-Attention: Alan Donovan <adon...@google.com>
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Gerrit Bot (Gerrit)

            unread,
            Dec 18, 2025, 3:02:47 PM (16 hours ago) Dec 18
            to Armin Günther, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
            Attention needed from Alan Donovan and Robert Griesemer

            Gerrit Bot uploaded new patchset

            Gerrit Bot uploaded patch set #6 to this change.
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Alan Donovan
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 6
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Gerrit Bot (Gerrit)

            unread,
            Dec 18, 2025, 3:36:33 PM (16 hours ago) Dec 18
            to Armin Günther, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
            Attention needed from Alan Donovan and Robert Griesemer

            Gerrit Bot uploaded new patchset

            Gerrit Bot uploaded patch set #7 to this change.
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Alan Donovan
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 7
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Gerrit Bot (Gerrit)

            unread,
            Dec 18, 2025, 4:43:33 PM (15 hours ago) Dec 18
            to Armin Günther, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
            Attention needed from Alan Donovan and Robert Griesemer

            Gerrit Bot uploaded new patchset

            Gerrit Bot uploaded patch set #8 to this change.
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Alan Donovan
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 8
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Gerrit Bot (Gerrit)

            unread,
            Dec 18, 2025, 4:51:59 PM (15 hours ago) Dec 18
            to Armin Günther, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
            Attention needed from Alan Donovan and Robert Griesemer

            Gerrit Bot uploaded new patchset

            Gerrit Bot uploaded patch set #9 to this change.
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Alan Donovan
            • Robert Griesemer
            Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Holds
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedNo-Wait-Release
            • 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: I7de80d76450f851d262b43a0685a0dc2218493f6
            Gerrit-Change-Number: 729860
            Gerrit-PatchSet: 9
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy
            Reply all
            Reply to author
            Forward
            0 new messages