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