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