Skip to content

Commit 00f2ff5

Browse files
committed
api/go1.16: add go/build/constraint APIs
These APIs were added in CL 240604 as part of an approved proposal. It was submitted after the initial api/go1.16.txt creation. For #41184 For #43407 Change-Id: Ifb54df2b61c554c32bd9d17afbb74f4e42e0b228 Reviewed-on: https://go-review.googlesource.com/c/go/+/287412 Trust: Alexander Rakoczy <[email protected]> Run-TryBot: Alexander Rakoczy <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 35334ca commit 00f2ff5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

api/go1.16.txt

+29
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,35 @@ pkg go/build, type Package struct, TestEmbedPatterns []string
232232
pkg go/build, type Package struct, TestEmbedPatternPos map[string][]token.Position
233233
pkg go/build, type Package struct, XTestEmbedPatterns []string
234234
pkg go/build, type Package struct, XTestEmbedPatternPos map[string][]token.Position
235+
pkg go/build/constraint, func IsGoBuild(string) bool
236+
pkg go/build/constraint, func IsPlusBuild(string) bool
237+
pkg go/build/constraint, func Parse(string) (Expr, error)
238+
pkg go/build/constraint, func PlusBuildLines(Expr) ([]string, error)
239+
pkg go/build/constraint, method (*AndExpr) Eval(func(string) bool) bool
240+
pkg go/build/constraint, method (*AndExpr) String() string
241+
pkg go/build/constraint, method (*NotExpr) Eval(func(string) bool) bool
242+
pkg go/build/constraint, method (*NotExpr) String() string
243+
pkg go/build/constraint, method (*OrExpr) Eval(func(string) bool) bool
244+
pkg go/build/constraint, method (*OrExpr) String() string
245+
pkg go/build/constraint, method (*SyntaxError) Error() string
246+
pkg go/build/constraint, method (*TagExpr) Eval(func(string) bool) bool
247+
pkg go/build/constraint, method (*TagExpr) String() string
248+
pkg go/build/constraint, type AndExpr struct
249+
pkg go/build/constraint, type AndExpr struct, X Expr
250+
pkg go/build/constraint, type AndExpr struct, Y Expr
251+
pkg go/build/constraint, type Expr interface, Eval(func(string) bool) bool
252+
pkg go/build/constraint, type Expr interface, String() string
253+
pkg go/build/constraint, type Expr interface, unexported methods
254+
pkg go/build/constraint, type NotExpr struct
255+
pkg go/build/constraint, type NotExpr struct, X Expr
256+
pkg go/build/constraint, type OrExpr struct
257+
pkg go/build/constraint, type OrExpr struct, X Expr
258+
pkg go/build/constraint, type OrExpr struct, Y Expr
259+
pkg go/build/constraint, type SyntaxError struct
260+
pkg go/build/constraint, type SyntaxError struct, Err string
261+
pkg go/build/constraint, type SyntaxError struct, Offset int
262+
pkg go/build/constraint, type TagExpr struct
263+
pkg go/build/constraint, type TagExpr struct, Tag string
235264
pkg html/template, func ParseFS(fs.FS, ...string) (*Template, error)
236265
pkg html/template, method (*Template) ParseFS(fs.FS, ...string) (*Template, error)
237266
pkg io, func NopCloser(Reader) ReadCloser

0 commit comments

Comments
 (0)