Files
moxa/stdlib/go_constant.go
Marc Vertes 25adc35a3c Change representation of stdlib from interface{} to reflect.Value
This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
2018-08-28 03:12:28 +02:00

53 lines
2.3 KiB
Go

package stdlib
// Generated by 'goexports go/constant'. Do not edit!
import (
"go/constant"
"reflect"
)
func init() {
Value["go/constant"] = map[string]reflect.Value{
"BinaryOp": reflect.ValueOf(constant.BinaryOp),
"BitLen": reflect.ValueOf(constant.BitLen),
"Bool": reflect.ValueOf(constant.Bool),
"BoolVal": reflect.ValueOf(constant.BoolVal),
"Bytes": reflect.ValueOf(constant.Bytes),
"Compare": reflect.ValueOf(constant.Compare),
"Complex": reflect.ValueOf(constant.Complex),
"Denom": reflect.ValueOf(constant.Denom),
"Float": reflect.ValueOf(constant.Float),
"Float32Val": reflect.ValueOf(constant.Float32Val),
"Float64Val": reflect.ValueOf(constant.Float64Val),
"Imag": reflect.ValueOf(constant.Imag),
"Int": reflect.ValueOf(constant.Int),
"Int64Val": reflect.ValueOf(constant.Int64Val),
"MakeBool": reflect.ValueOf(constant.MakeBool),
"MakeFloat64": reflect.ValueOf(constant.MakeFloat64),
"MakeFromBytes": reflect.ValueOf(constant.MakeFromBytes),
"MakeFromLiteral": reflect.ValueOf(constant.MakeFromLiteral),
"MakeImag": reflect.ValueOf(constant.MakeImag),
"MakeInt64": reflect.ValueOf(constant.MakeInt64),
"MakeString": reflect.ValueOf(constant.MakeString),
"MakeUint64": reflect.ValueOf(constant.MakeUint64),
"MakeUnknown": reflect.ValueOf(constant.MakeUnknown),
"Num": reflect.ValueOf(constant.Num),
"Real": reflect.ValueOf(constant.Real),
"Shift": reflect.ValueOf(constant.Shift),
"Sign": reflect.ValueOf(constant.Sign),
"String": reflect.ValueOf(constant.String),
"StringVal": reflect.ValueOf(constant.StringVal),
"ToComplex": reflect.ValueOf(constant.ToComplex),
"ToFloat": reflect.ValueOf(constant.ToFloat),
"ToInt": reflect.ValueOf(constant.ToInt),
"Uint64Val": reflect.ValueOf(constant.Uint64Val),
"UnaryOp": reflect.ValueOf(constant.UnaryOp),
"Unknown": reflect.ValueOf(constant.Unknown),
}
Type["go/constant"] = map[string]reflect.Type{
"Kind": reflect.TypeOf((*constant.Kind)(nil)).Elem(),
"Value": reflect.TypeOf((*constant.Value)(nil)).Elem(),
}
}