Standard library / go/build/constraint

go/build/constraint.OrExpr

Logical disjunction node in the build expression tree. Expected stdout: '*constraint.OrExpr\n'.

Formal Syntax & Structure

go syntaxgo
type OrExpr struct {  X, Y Expr}

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/build/constraint")
func main() {  x := &constraint.OrExpr{X: &constraint.TagExpr{Tag: "linux"}, Y: &constraint.TagExpr{Tag: "windows"}}  fmt.Printf("%T\n", x)}
Go Reference