Standard library / go/build/constraint
go/build/constraint.NotExpr
Logical negation node in the build expression tree. Expected stdout: '*constraint.NotExpr\n'.
Formal Syntax & Structure
go syntaxgo
type NotExpr struct { X Expr}Working Example
Example Snippetgo
package main
import ( "fmt" "go/build/constraint")
func main() { x := &constraint.NotExpr{X: &constraint.TagExpr{Tag: "windows"}}; fmt.Printf("%T\n", x) }