-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
api: audit for Go 1.15 go1.15.txt #39489
Comments
The various
The
|
Explicitly calling out additions in 1.15 that were not routine changes and did not go through the proposal review committee. They all look fine to me. CC @rsc
|
/cc @bradfitz @kardianos for database/sql changes Please review the new APIs added for Go 1.15, and check off the addition if it is acceptable, ideally having gone through our proposal process (see @ianlancetaylor's comments above). Adding the applicable proposal is welcome if it exists. Thanks! |
I looked over the APIs that @ianlancetaylor flagged above, as well as the entire list. They all look good. Thanks. |
Change https://golang.org/cl/240683 mentions this issue: |
The StdFormat flag was added as part of CL 231461, where the primary aim was to fix the bug #37476. It's expected that the existing printer modes only adjust spacing but do not change any of the code text itself. A new printing flag served as a way for cmd/gofmt and go/format to delegate a part of formatting work to the printer—where it's more more convenient and efficient to perform—while maintaining current low-level printing behavior of go/printer unmodified. We already have cmd/gofmt and the go/format API that implement standard formatting of Go source code, so there isn't a need to expose StdFormat flag to the world, as it can only cause confusion. Consider that to format source in canonical gofmt style completely it may require tasks A, B, C to be done. In one version of Go, the printer may do both A and B, while cmd/gofmt and go/format will do the remaining task C. In another version, the printer may take on doing just A, while cmd/gofmt and go/format will perform B and C. This makes it hard to add a gofmt-like mode to the printer without compromising on above fluidity. This change prefers to shift back some complexity to the implementation of the standard library, allowing us to avoid creating the new exported printing flag just for the internal needs of gofmt and go/format today. We may still want to re-think the API and consider if something better should be added, but unfortunately there isn't time for Go 1.15. We are not adding new APIs now, so we can defer this decision until Go 1.16 or later, when there is more time. For #37476. For #37453. For #39489. For #37419. Change-Id: I0bb07156dca852b043487099dcf05c5350b29e20 Reviewed-on: https://go-review.googlesource.com/c/go/+/240683 Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
CL 237297 introduced the following for Go 1.15:
New API changes for Go 1.15:
CL 225557:
CL 224937:
CL 217940:
CL 231417:
CL 223754:
CL 202819:
CL 214977:
CL 208226:
CL 229122:
CL 217298:
CL 145758:
CL 214317:
CL 223963:
CL 222637:
CL 231461:
CL 231459:
CL 230397:
CL 228641:
CL 227645:
CL 207082:
CL 229101:
CL 228645:
CL 187919:
CL 216617:
CL 205899:
CL 226877:
CL 202758:
CL 220424:
/cc @golang/osp-team
The text was updated successfully, but these errors were encountered: