New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fmt: allow padding and minus flags at the same time #61836
Conversation
This PR (HEAD: 22a951b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/516975. Important tips:
|
Message from Rob Pike: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Mitar: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Rob Pike: Patch Set 1: Code-Review+2 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Gopher Robot: Patch Set 1: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Mitar: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Rob Pike: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Mitar: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Rob Pike: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Mitar: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
This PR (HEAD: c6b62aa) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/516975. Important tips:
|
Message from Rob Pike: Patch Set 2: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Rob Pike: Patch Set 2: -Code-Review Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
This PR (HEAD: 9da1b96) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/516975. Important tips:
|
Message from Mitar: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Rob Pike: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
This PR (HEAD: 14446fe) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/516975. Important tips:
|
Message from Mitar: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Rob Pike: Patch Set 4: Code-Review+2 Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Gopher Robot: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Martin Möhrmann: Patch Set 4: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Martin Möhrmann: Patch Set 4: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Gopher Robot: Patch Set 4: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Mitar: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Ian Lance Taylor: Patch Set 4: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Ian Lance Taylor: Patch Set 4: Auto-Submit+1 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-03-01T22:02:54Z","revision":"c83d058db69843b3059b492845114af32d518a81"} Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Ian Lance Taylor: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Go LUCI: Patch Set 4: This CL has failed the run. Reason: Tryjob golang/try/x_tools-gotip-linux-amd64 has failed with summary (view all results): FAILURE
Error: Links: Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Mitar: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Ian Lance Taylor: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Existing implementation did not allow setting both padding and minus flags at the same time because standard formatting does not allow that. But custom Formatter interface implementations might have use of it. This change moves the check from the place flags are parsed to where they are used in standard formatting. Fixes golang#61784
Message from Mitar: Patch Set 4: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
This PR (HEAD: d99ec55) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/516975. Important tips:
|
Message from Ian Lance Taylor: Patch Set 5: Auto-Submit+1 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Go LUCI: Patch Set 5: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-03-02T00:10:42Z","revision":"509d636bb134c08cbab7343d45e97b039d990714"} Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Ian Lance Taylor: Patch Set 5: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Go LUCI: Patch Set 5: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Message from Go LUCI: Patch Set 5: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/516975. |
Existing implementation did not allow setting both padding and minus flags at the same time because standard formatting does not allow that. But custom Formatter interface implementations might have use of it. This change moves the check from the place flags are parsed to where they are used in standard formatting. Fixes #61784 Change-Id: If5909d45dc929ddf911453e1056a4661abe76e52 GitHub-Last-Rev: d99ec55 GitHub-Pull-Request: #61836 Reviewed-on: https://go-review.googlesource.com/c/go/+/516975 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Martin Möhrmann <moehrmann@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Martin Möhrmann <martin@golang.org> Auto-Submit: Ian Lance Taylor <iant@golang.org>
This PR is being closed because golang.org/cl/516975 has been merged. |
Existing implementation did not allow setting both padding and minus flags at the same time because standard formatting does not allow that. But custom Formatter interface implementations might have use of it. This change moves the check from the place flags are parsed to where they are used in standard formatting.
Fixes #61784