github.com/HaHadaxigua/yaegi@v1.0.1/stdlib/go1_17_go_build_constraint.go (about) 1 // Code generated by 'yaegi extract go/build/constraint'. DO NOT EDIT. 2 3 //go:build go1.17 4 // +build go1.17 5 6 package stdlib 7 8 import ( 9 "go/build/constraint" 10 "reflect" 11 ) 12 13 func init() { 14 Symbols["go/build/constraint/constraint"] = map[string]reflect.Value{ 15 // function, constant and variable definitions 16 "IsGoBuild": reflect.ValueOf(constraint.IsGoBuild), 17 "IsPlusBuild": reflect.ValueOf(constraint.IsPlusBuild), 18 "Parse": reflect.ValueOf(constraint.Parse), 19 "PlusBuildLines": reflect.ValueOf(constraint.PlusBuildLines), 20 21 // type definitions 22 "AndExpr": reflect.ValueOf((*constraint.AndExpr)(nil)), 23 "Expr": reflect.ValueOf((*constraint.Expr)(nil)), 24 "NotExpr": reflect.ValueOf((*constraint.NotExpr)(nil)), 25 "OrExpr": reflect.ValueOf((*constraint.OrExpr)(nil)), 26 "SyntaxError": reflect.ValueOf((*constraint.SyntaxError)(nil)), 27 "TagExpr": reflect.ValueOf((*constraint.TagExpr)(nil)), 28 29 // interface wrapper definitions 30 "_Expr": reflect.ValueOf((*_go_build_constraint_Expr)(nil)), 31 } 32 } 33 34 // _go_build_constraint_Expr is an interface wrapper for Expr type 35 type _go_build_constraint_Expr struct { 36 IValue interface{} 37 WEval func(ok func(tag string) bool) bool 38 WString func() string 39 } 40 41 func (W _go_build_constraint_Expr) Eval(ok func(tag string) bool) bool { 42 return W.WEval(ok) 43 } 44 func (W _go_build_constraint_Expr) String() string { 45 if W.WString == nil { 46 return "" 47 } 48 return W.WString() 49 }