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