commit | 792c8776358f0c8689d84eef0d0c966937d560fb | [log] [tgz] |
---|---|---|
author | Mikhail Mazurskiy <[email protected]> | Mon Aug 11 12:48:04 2025 |
committer | Gopher Robot <[email protected]> | Tue Sep 16 00:27:56 2025 |
tree | e70e971483d17638e54458363365ce8cd1fcb8dc | |
parent | 014cf778b444f29c82ececa4f3ec1f6fe3db3eaf [diff] |
oauth2: use strings.Builder instead of bytes.Buffer The former does not make a copy of the accumulated buffer to produce a string. WriteByte() is faster than WriteRune() and we are not appending non-ASCII here. Change-Id: I562461eec2fdcf6230e46b3011fabe0979d05044 GitHub-Last-Rev: b7845f8881d5097e0a70d025d737f1da6eaa7586 GitHub-Pull-Request: golang/oauth2#785 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/694715 Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Mark Freeman <[email protected]> Reviewed-by: Sean Liao <[email protected]> Auto-Submit: Sean Liao <[email protected]>
oauth2 package contains a client implementation for OAuth 2.0 spec.
See pkg.go.dev for further documentation and examples.
We no longer accept new provider-specific packages in this repo if all they do is add a single endpoint variable. If you just want to add a single endpoint, add it to the pkg.go.dev/golang.org/x/oauth2/endpoints package.
The main issue tracker for the oauth2 repository is located at https://github.com/golang/oauth2/issues.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/oauth2.
Note: