diff options
author | Russ Cox <rsc@golang.org> | 2023-03-13 17:23:13 -0400 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-04-11 19:39:51 +0000 |
commit | 830f54b70ed2ce0c28c8db30876aba67beed7ee3 (patch) | |
tree | a1fce3b2e2dc1e8aed14fcf2035275f54690ceed /api | |
parent | eb57c09054e7a0910202db0000b48419bc96d0ea (diff) | |
download | go-git-830f54b70ed2ce0c28c8db30876aba67beed7ee3.tar.gz |
go/build/constraint: add GoVersion
For #57001, programs need to be able to deduce the Go version
implied by a given build constraint. GoVersion determines that,
by discarding all build tags other than Go versions and computing
the minimum Go version implied by the resulting expression.
For #59033.
Change-Id: Ifb1e7af2bdbdf172f82aa490c826c9b6ca5e824b
Reviewed-on: https://go-review.googlesource.com/c/go/+/476275
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/59033.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/next/59033.txt b/api/next/59033.txt new file mode 100644 index 0000000000..4c37697462 --- /dev/null +++ b/api/next/59033.txt @@ -0,0 +1,2 @@ +pkg go/build/constraint, func GoVersion(Expr) string #59033 + |