github.com/traefik/yaegi@v0.15.1/stdlib/go1_19_go_constant.go (about) 1 // Code generated by 'yaegi extract go/constant'. DO NOT EDIT. 2 3 //go:build go1.19 && !go1.20 4 // +build go1.19,!go1.20 5 6 package stdlib 7 8 import ( 9 "go/constant" 10 "reflect" 11 ) 12 13 func init() { 14 Symbols["go/constant/constant"] = map[string]reflect.Value{ 15 // function, constant and variable definitions 16 "BinaryOp": reflect.ValueOf(constant.BinaryOp), 17 "BitLen": reflect.ValueOf(constant.BitLen), 18 "Bool": reflect.ValueOf(constant.Bool), 19 "BoolVal": reflect.ValueOf(constant.BoolVal), 20 "Bytes": reflect.ValueOf(constant.Bytes), 21 "Compare": reflect.ValueOf(constant.Compare), 22 "Complex": reflect.ValueOf(constant.Complex), 23 "Denom": reflect.ValueOf(constant.Denom), 24 "Float": reflect.ValueOf(constant.Float), 25 "Float32Val": reflect.ValueOf(constant.Float32Val), 26 "Float64Val": reflect.ValueOf(constant.Float64Val), 27 "Imag": reflect.ValueOf(constant.Imag), 28 "Int": reflect.ValueOf(constant.Int), 29 "Int64Val": reflect.ValueOf(constant.Int64Val), 30 "Make": reflect.ValueOf(constant.Make), 31 "MakeBool": reflect.ValueOf(constant.MakeBool), 32 "MakeFloat64": reflect.ValueOf(constant.MakeFloat64), 33 "MakeFromBytes": reflect.ValueOf(constant.MakeFromBytes), 34 "MakeFromLiteral": reflect.ValueOf(constant.MakeFromLiteral), 35 "MakeImag": reflect.ValueOf(constant.MakeImag), 36 "MakeInt64": reflect.ValueOf(constant.MakeInt64), 37 "MakeString": reflect.ValueOf(constant.MakeString), 38 "MakeUint64": reflect.ValueOf(constant.MakeUint64), 39 "MakeUnknown": reflect.ValueOf(constant.MakeUnknown), 40 "Num": reflect.ValueOf(constant.Num), 41 "Real": reflect.ValueOf(constant.Real), 42 "Shift": reflect.ValueOf(constant.Shift), 43 "Sign": reflect.ValueOf(constant.Sign), 44 "String": reflect.ValueOf(constant.String), 45 "StringVal": reflect.ValueOf(constant.StringVal), 46 "ToComplex": reflect.ValueOf(constant.ToComplex), 47 "ToFloat": reflect.ValueOf(constant.ToFloat), 48 "ToInt": reflect.ValueOf(constant.ToInt), 49 "Uint64Val": reflect.ValueOf(constant.Uint64Val), 50 "UnaryOp": reflect.ValueOf(constant.UnaryOp), 51 "Unknown": reflect.ValueOf(constant.Unknown), 52 "Val": reflect.ValueOf(constant.Val), 53 54 // type definitions 55 "Kind": reflect.ValueOf((*constant.Kind)(nil)), 56 "Value": reflect.ValueOf((*constant.Value)(nil)), 57 58 // interface wrapper definitions 59 "_Value": reflect.ValueOf((*_go_constant_Value)(nil)), 60 } 61 } 62 63 // _go_constant_Value is an interface wrapper for Value type 64 type _go_constant_Value struct { 65 IValue interface{} 66 WExactString func() string 67 WKind func() constant.Kind 68 WString func() string 69 } 70 71 func (W _go_constant_Value) ExactString() string { 72 return W.WExactString() 73 } 74 func (W _go_constant_Value) Kind() constant.Kind { 75 return W.WKind() 76 } 77 func (W _go_constant_Value) String() string { 78 if W.WString == nil { 79 return "" 80 } 81 return W.WString() 82 }