Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(t testing.TB, line string) constraint.Expr
Parse parses a single build constraint line of the form “//go:build ...” or “// +build ...” and returns the corresponding boolean expression.
func PlusBuildLines ¶
func PlusBuildLines(t testing.TB, x constraint.Expr) []string
PlusBuildLines returns a sequence of “// +build” lines that evaluate to the build expression x. If the expression is too complex to convert directly to “// +build” lines, PlusBuildLines returns an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.