Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expr ¶
type Expr interface { // String returns the string form of the expression, // using the boolean syntax used in #wa:build lines. String() string // Eval reports whether the expression evaluates to true. // It calls ok(tag) as needed to find out whether a given build tag // is satisfied by the current build configuration. Eval(ok func(tag string) bool) bool // contains filtered or unexported methods }
An Expr is a build tag constraint expression. The underlying concrete type is *AndExpr, *OrExpr, *NotExpr, or *TagExpr.
type NotExpr ¶
type NotExpr struct {
X Expr
}
A NotExpr represents the expression !X (the negation of X).
type SyntaxError ¶
type SyntaxError struct { Offset int // byte offset in input where error was detected Err string // description of error }
A SyntaxError reports a syntax error in a parsed build expression.
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
Click to show internal directories.
Click to hide internal directories.