diff options
author | Russ Cox <rsc@golang.org> | 2023-10-31 19:51:18 -0400 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-11-06 23:20:32 +0000 |
commit | b54cae276aa7997d91e1ce5de6e27ec60b19e4bb (patch) | |
tree | 6f999ce35372df5d0a4aba3558195bdc7c8e8c79 /api | |
parent | 6458c8e45f83e42283079f6dbf0e5fe986e76305 (diff) | |
download | go-b54cae276aa7997d91e1ce5de6e27ec60b19e4bb.tar.gz go-b54cae276aa7997d91e1ce5de6e27ec60b19e4bb.zip |
go/version: add new package
go/version provides basic comparison of Go versions,
for use when deciding whether certain language features
are allowed, and so on.
See the proposal issue #62039 for more details.
Fixes #62039
Change-Id: Ibdfd4fe15afe406c46da568cb31feb42ec30b530
Reviewed-on: https://go-review.googlesource.com/c/go/+/538895
Auto-Submit: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/62039.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/next/62039.txt b/api/next/62039.txt new file mode 100644 index 0000000000..8280e87751 --- /dev/null +++ b/api/next/62039.txt @@ -0,0 +1,3 @@ +pkg go/version, func Compare(string, string) int #62039 +pkg go/version, func IsValid(string) bool #62039 +pkg go/version, func Lang(string) string #62039 |