Documentation ¶
Index ¶
- Variables
- func BoolStringVal(sv string) bool
- func CanCoerce(from, to reflect.Value) bool
- func CoerceTo(to, itemToConvert reflect.Value) reflect.Value
- func Equal(itemA, itemB Value) (bool, error)
- func IsBool(sv string) bool
- func IsNilIsh(v reflect.Value) bool
- func ToBool(v reflect.Value) (bool, bool)
- func ToFloat64(v reflect.Value) (float64, bool)
- func ToInt64(v reflect.Value) (int64, bool)
- func ToString(v reflect.Value) (string, bool)
- func ToStringUnchecked(v reflect.Value) string
- type BoolValue
- func (m BoolValue) CanCoerce(toRv reflect.Value) bool
- func (m BoolValue) Err() bool
- func (m BoolValue) MarshalJSON() ([]byte, error)
- func (m BoolValue) Nil() bool
- func (m BoolValue) Rv() reflect.Value
- func (m BoolValue) ToString() string
- func (m BoolValue) Type() ValueType
- func (m BoolValue) Val() bool
- func (m BoolValue) Value() interface{}
- type ByteSliceValue
- func (m ByteSliceValue) Err() bool
- func (m ByteSliceValue) Len() int
- func (m ByteSliceValue) MarshalJSON() ([]byte, error)
- func (m ByteSliceValue) Nil() bool
- func (m ByteSliceValue) Rv() reflect.Value
- func (m ByteSliceValue) ToString() string
- func (m ByteSliceValue) Type() ValueType
- func (m ByteSliceValue) Val() []byte
- func (m ByteSliceValue) Value() interface{}
- type ErrorValue
- func (m ErrorValue) CanCoerce(toRv reflect.Value) bool
- func (m ErrorValue) Err() bool
- func (m ErrorValue) Error() string
- func (m ErrorValue) MarshalJSON() ([]byte, error)
- func (m ErrorValue) Nil() bool
- func (m ErrorValue) Rv() reflect.Value
- func (m ErrorValue) ToString() string
- func (m ErrorValue) Type() ValueType
- func (m ErrorValue) Val() string
- func (m ErrorValue) Value() interface{}
- type IntValue
- func (m IntValue) CanCoerce(toRv reflect.Value) bool
- func (m IntValue) Err() bool
- func (m IntValue) Float() float64
- func (m IntValue) Int() int64
- func (m IntValue) MarshalJSON() ([]byte, error)
- func (m IntValue) Nil() bool
- func (m IntValue) NumberValue() NumberValue
- func (m IntValue) Rv() reflect.Value
- func (m IntValue) ToString() string
- func (m IntValue) Type() ValueType
- func (m IntValue) Val() int64
- func (m IntValue) Value() interface{}
- type Map
- type MapBoolValue
- func (m MapBoolValue) CanCoerce(toRv reflect.Value) bool
- func (m MapBoolValue) Err() bool
- func (m MapBoolValue) MapValue() MapValue
- func (m MapBoolValue) MarshalJSON() ([]byte, error)
- func (m MapBoolValue) Nil() bool
- func (m MapBoolValue) Rv() reflect.Value
- func (m MapBoolValue) SliceValue() []Value
- func (m MapBoolValue) ToString() string
- func (m MapBoolValue) Type() ValueType
- func (m MapBoolValue) Val() map[string]bool
- func (m MapBoolValue) Value() interface{}
- type MapIntValue
- func (m MapIntValue) CanCoerce(toRv reflect.Value) bool
- func (m MapIntValue) Err() bool
- func (m MapIntValue) MapFloat() map[string]float64
- func (m MapIntValue) MapInt() map[string]int64
- func (m MapIntValue) MapValue() MapValue
- func (m MapIntValue) MarshalJSON() ([]byte, error)
- func (m MapIntValue) Nil() bool
- func (m MapIntValue) Rv() reflect.Value
- func (m MapIntValue) SliceValue() []Value
- func (m MapIntValue) ToString() string
- func (m MapIntValue) Type() ValueType
- func (m MapIntValue) Val() map[string]int64
- func (m MapIntValue) Value() interface{}
- type MapNumberValue
- func (m MapNumberValue) CanCoerce(toRv reflect.Value) bool
- func (m MapNumberValue) Err() bool
- func (m MapNumberValue) MapInt() map[string]int64
- func (m MapNumberValue) MapValue() MapValue
- func (m MapNumberValue) MarshalJSON() ([]byte, error)
- func (m MapNumberValue) Nil() bool
- func (m MapNumberValue) Rv() reflect.Value
- func (m MapNumberValue) SliceValue() []Value
- func (m MapNumberValue) ToString() string
- func (m MapNumberValue) Type() ValueType
- func (m MapNumberValue) Val() map[string]float64
- func (m MapNumberValue) Value() interface{}
- type MapStringValue
- func (m MapStringValue) CanCoerce(toRv reflect.Value) bool
- func (m MapStringValue) Err() bool
- func (m MapStringValue) MapBool() MapBoolValue
- func (m MapStringValue) MapInt() MapIntValue
- func (m MapStringValue) MapNumber() MapNumberValue
- func (m MapStringValue) MapValue() MapValue
- func (m MapStringValue) MarshalJSON() ([]byte, error)
- func (m MapStringValue) Nil() bool
- func (m MapStringValue) Rv() reflect.Value
- func (m MapStringValue) SliceValue() []Value
- func (m MapStringValue) ToString() string
- func (m MapStringValue) Type() ValueType
- func (m MapStringValue) Val() map[string]string
- func (m MapStringValue) Value() interface{}
- type MapValue
- func (m MapValue) CanCoerce(toRv reflect.Value) bool
- func (m MapValue) Err() bool
- func (m MapValue) MapFloat() map[string]float64
- func (m MapValue) MapInt() map[string]int64
- func (m MapValue) MapString() map[string]string
- func (m MapValue) MarshalJSON() ([]byte, error)
- func (m MapValue) Nil() bool
- func (m MapValue) Rv() reflect.Value
- func (m MapValue) ToString() string
- func (m MapValue) Type() ValueType
- func (m MapValue) Val() map[string]Value
- func (m MapValue) Value() interface{}
- type NilValue
- func (m NilValue) CanCoerce(toRv reflect.Value) bool
- func (m NilValue) Err() bool
- func (m NilValue) MarshalJSON() ([]byte, error)
- func (m NilValue) Nil() bool
- func (m NilValue) Rv() reflect.Value
- func (m NilValue) ToString() string
- func (m NilValue) Type() ValueType
- func (m NilValue) Val() interface{}
- func (m NilValue) Value() interface{}
- type NumberValue
- func (m NumberValue) CanCoerce(toRv reflect.Value) bool
- func (m NumberValue) Err() bool
- func (m NumberValue) Float() float64
- func (m NumberValue) Int() int64
- func (m NumberValue) MarshalJSON() ([]byte, error)
- func (m NumberValue) Nil() bool
- func (m NumberValue) Rv() reflect.Value
- func (m NumberValue) ToString() string
- func (m NumberValue) Type() ValueType
- func (m NumberValue) Val() float64
- func (m NumberValue) Value() interface{}
- type NumericValue
- type Slice
- type SliceValue
- func (m *SliceValue) Append(v Value)
- func (m SliceValue) Err() bool
- func (m SliceValue) Len() int
- func (m SliceValue) MarshalJSON() ([]byte, error)
- func (m SliceValue) Nil() bool
- func (m SliceValue) Rv() reflect.Value
- func (m SliceValue) SliceValue() []Value
- func (m SliceValue) ToString() string
- func (m SliceValue) Type() ValueType
- func (m SliceValue) Val() []Value
- func (m SliceValue) Value() interface{}
- type StringValue
- func (m StringValue) CanCoerce(input reflect.Value) bool
- func (m StringValue) Err() bool
- func (m StringValue) IntValue() IntValue
- func (m StringValue) MarshalJSON() ([]byte, error)
- func (m StringValue) Nil() bool
- func (m StringValue) NumberValue() NumberValue
- func (m StringValue) Rv() reflect.Value
- func (m StringValue) StringsValue() StringsValue
- func (m StringValue) ToString() string
- func (m StringValue) Type() ValueType
- func (m StringValue) Val() string
- func (m StringValue) Value() interface{}
- type StringsValue
- func (m *StringsValue) Append(sv string)
- func (m StringsValue) CanCoerce(boolRv reflect.Value) bool
- func (m StringsValue) Err() bool
- func (m StringsValue) IntValue() IntValue
- func (m StringsValue) Len() int
- func (m StringsValue) MarshalJSON() ([]byte, error)
- func (m StringsValue) Nil() bool
- func (m StringsValue) NumberValue() NumberValue
- func (m StringsValue) Rv() reflect.Value
- func (m StringsValue) Set() map[string]struct{}
- func (m StringsValue) SliceValue() []Value
- func (m StringsValue) Strings() []string
- func (m StringsValue) ToString() string
- func (m StringsValue) Type() ValueType
- func (m StringsValue) Val() []string
- func (m StringsValue) Value() interface{}
- type StructValue
- func (m StructValue) CanCoerce(toRv reflect.Value) bool
- func (m StructValue) Err() bool
- func (m StructValue) MarshalJSON() ([]byte, error)
- func (m StructValue) Nil() bool
- func (m StructValue) Rv() reflect.Value
- func (m StructValue) ToString() string
- func (m StructValue) Type() ValueType
- func (m StructValue) Val() interface{}
- func (m StructValue) Value() interface{}
- type TimeValue
- func (m TimeValue) CanCoerce(toRv reflect.Value) bool
- func (m TimeValue) Err() bool
- func (m TimeValue) Float() float64
- func (m TimeValue) Int() int64
- func (m TimeValue) MarshalJSON() ([]byte, error)
- func (m TimeValue) Nil() bool
- func (m TimeValue) Rv() reflect.Value
- func (m TimeValue) Time() time.Time
- func (m TimeValue) ToString() string
- func (m TimeValue) Type() ValueType
- func (m TimeValue) Val() time.Time
- func (m TimeValue) Value() interface{}
- type Value
- type ValueType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RV_ZERO = reflect.Value{} EmptyStruct = struct{}{} NilValueVal = NewNilValue() BoolValueTrue = BoolValue{true, reflect.ValueOf(true)} BoolValueFalse = BoolValue{false, reflect.ValueOf(false)} NumberNaNValue = NewNumberValue(math.NaN()) EmptyStringValue = NewStringValue("") EmptyStringsValue = NewStringsValue(nil) EmptyMapValue = NewMapValue(nil) EmptyMapStringValue = NewMapStringValue(make(map[string]string)) EmptyMapIntValue = NewMapIntValue(make(map[string]int64)) EmptyMapNumberValue = NewMapNumberValue(make(map[string]float64)) EmptyMapBoolValue = NewMapBoolValue(make(map[string]bool)) NilStructValue = NewStructValue(nilStruct) TimeZeroValue = NewTimeValue(time.Time{}) ErrValue = NewErrorValue("") )
Functions ¶
func BoolStringVal ¶
func CoerceTo ¶
Given a reflect.Value coerce a 2nd into same type (so we can compare equality)
coerces into limited set of types int(8,16,32,64), uint(16,32,64,8) => int64 floats => float64 string => string bool => bool
func Equal ¶
Equal function
returns bool, error first bool for if they are equal error if it could not evaluate
func IsNilIsh ¶
IsNilish returns true
integers = 0 = true (is nilish) floats = 0 = true strings = "" pointers = nil = true
func ToStringUnchecked ¶
Types ¶
type BoolValue ¶
type BoolValue struct {
// contains filtered or unexported fields
}
func NewBoolValue ¶
func (BoolValue) MarshalJSON ¶
type ByteSliceValue ¶
type ByteSliceValue struct {
// contains filtered or unexported fields
}
func NewByteSliceValue ¶
func NewByteSliceValue(v []byte) ByteSliceValue
func (ByteSliceValue) Err ¶
func (m ByteSliceValue) Err() bool
func (ByteSliceValue) Len ¶
func (m ByteSliceValue) Len() int
func (ByteSliceValue) MarshalJSON ¶
func (m ByteSliceValue) MarshalJSON() ([]byte, error)
func (ByteSliceValue) Nil ¶
func (m ByteSliceValue) Nil() bool
func (ByteSliceValue) Rv ¶
func (m ByteSliceValue) Rv() reflect.Value
func (ByteSliceValue) ToString ¶
func (m ByteSliceValue) ToString() string
func (ByteSliceValue) Type ¶
func (m ByteSliceValue) Type() ValueType
func (ByteSliceValue) Val ¶
func (m ByteSliceValue) Val() []byte
func (ByteSliceValue) Value ¶
func (m ByteSliceValue) Value() interface{}
type ErrorValue ¶
type ErrorValue struct {
// contains filtered or unexported fields
}
func NewErrorValue ¶
func NewErrorValue(v string) ErrorValue
func NewErrorValuef ¶
func NewErrorValuef(v string, args ...interface{}) ErrorValue
func (ErrorValue) Err ¶
func (m ErrorValue) Err() bool
func (ErrorValue) Error ¶
func (m ErrorValue) Error() string
ErrorValues implement Go's error interface so they can easily cross the VM/Go boundary.
func (ErrorValue) MarshalJSON ¶
func (m ErrorValue) MarshalJSON() ([]byte, error)
func (ErrorValue) Nil ¶
func (m ErrorValue) Nil() bool
func (ErrorValue) Rv ¶
func (m ErrorValue) Rv() reflect.Value
func (ErrorValue) ToString ¶
func (m ErrorValue) ToString() string
func (ErrorValue) Type ¶
func (m ErrorValue) Type() ValueType
func (ErrorValue) Val ¶
func (m ErrorValue) Val() string
func (ErrorValue) Value ¶
func (m ErrorValue) Value() interface{}
type IntValue ¶
type IntValue struct {
// contains filtered or unexported fields
}
func NewIntValue ¶
func (IntValue) MarshalJSON ¶
func (IntValue) NumberValue ¶
func (m IntValue) NumberValue() NumberValue
type MapBoolValue ¶
type MapBoolValue struct {
// contains filtered or unexported fields
}
func NewMapBoolValue ¶
func NewMapBoolValue(v map[string]bool) MapBoolValue
func (MapBoolValue) Err ¶
func (m MapBoolValue) Err() bool
func (MapBoolValue) MapValue ¶
func (m MapBoolValue) MapValue() MapValue
func (MapBoolValue) MarshalJSON ¶
func (m MapBoolValue) MarshalJSON() ([]byte, error)
func (MapBoolValue) Nil ¶
func (m MapBoolValue) Nil() bool
func (MapBoolValue) Rv ¶
func (m MapBoolValue) Rv() reflect.Value
func (MapBoolValue) SliceValue ¶
func (m MapBoolValue) SliceValue() []Value
func (MapBoolValue) ToString ¶
func (m MapBoolValue) ToString() string
func (MapBoolValue) Type ¶
func (m MapBoolValue) Type() ValueType
func (MapBoolValue) Val ¶
func (m MapBoolValue) Val() map[string]bool
func (MapBoolValue) Value ¶
func (m MapBoolValue) Value() interface{}
type MapIntValue ¶
type MapIntValue struct {
// contains filtered or unexported fields
}
func NewMapIntValue ¶
func NewMapIntValue(v map[string]int64) MapIntValue
func (MapIntValue) Err ¶
func (m MapIntValue) Err() bool
func (MapIntValue) MapFloat ¶
func (m MapIntValue) MapFloat() map[string]float64
func (MapIntValue) MapInt ¶
func (m MapIntValue) MapInt() map[string]int64
func (MapIntValue) MapValue ¶
func (m MapIntValue) MapValue() MapValue
func (MapIntValue) MarshalJSON ¶
func (m MapIntValue) MarshalJSON() ([]byte, error)
func (MapIntValue) Nil ¶
func (m MapIntValue) Nil() bool
func (MapIntValue) Rv ¶
func (m MapIntValue) Rv() reflect.Value
func (MapIntValue) SliceValue ¶
func (m MapIntValue) SliceValue() []Value
func (MapIntValue) ToString ¶
func (m MapIntValue) ToString() string
func (MapIntValue) Type ¶
func (m MapIntValue) Type() ValueType
func (MapIntValue) Val ¶
func (m MapIntValue) Val() map[string]int64
func (MapIntValue) Value ¶
func (m MapIntValue) Value() interface{}
type MapNumberValue ¶
type MapNumberValue struct {
// contains filtered or unexported fields
}
func NewMapNumberValue ¶
func NewMapNumberValue(v map[string]float64) MapNumberValue
func (MapNumberValue) Err ¶
func (m MapNumberValue) Err() bool
func (MapNumberValue) MapInt ¶
func (m MapNumberValue) MapInt() map[string]int64
func (MapNumberValue) MapValue ¶
func (m MapNumberValue) MapValue() MapValue
func (MapNumberValue) MarshalJSON ¶
func (m MapNumberValue) MarshalJSON() ([]byte, error)
func (MapNumberValue) Nil ¶
func (m MapNumberValue) Nil() bool
func (MapNumberValue) Rv ¶
func (m MapNumberValue) Rv() reflect.Value
func (MapNumberValue) SliceValue ¶
func (m MapNumberValue) SliceValue() []Value
func (MapNumberValue) ToString ¶
func (m MapNumberValue) ToString() string
func (MapNumberValue) Type ¶
func (m MapNumberValue) Type() ValueType
func (MapNumberValue) Val ¶
func (m MapNumberValue) Val() map[string]float64
func (MapNumberValue) Value ¶
func (m MapNumberValue) Value() interface{}
type MapStringValue ¶
type MapStringValue struct {
// contains filtered or unexported fields
}
func NewMapStringValue ¶
func NewMapStringValue(v map[string]string) MapStringValue
func (MapStringValue) Err ¶
func (m MapStringValue) Err() bool
func (MapStringValue) MapBool ¶
func (m MapStringValue) MapBool() MapBoolValue
func (MapStringValue) MapInt ¶
func (m MapStringValue) MapInt() MapIntValue
func (MapStringValue) MapNumber ¶
func (m MapStringValue) MapNumber() MapNumberValue
func (MapStringValue) MapValue ¶
func (m MapStringValue) MapValue() MapValue
func (MapStringValue) MarshalJSON ¶
func (m MapStringValue) MarshalJSON() ([]byte, error)
func (MapStringValue) Nil ¶
func (m MapStringValue) Nil() bool
func (MapStringValue) Rv ¶
func (m MapStringValue) Rv() reflect.Value
func (MapStringValue) SliceValue ¶
func (m MapStringValue) SliceValue() []Value
func (MapStringValue) ToString ¶
func (m MapStringValue) ToString() string
func (MapStringValue) Type ¶
func (m MapStringValue) Type() ValueType
func (MapStringValue) Val ¶
func (m MapStringValue) Val() map[string]string
func (MapStringValue) Value ¶
func (m MapStringValue) Value() interface{}
type MapValue ¶
type MapValue struct {
// contains filtered or unexported fields
}
func NewMapValue ¶
func (MapValue) MarshalJSON ¶
type NilValue ¶
type NilValue struct{}
func NewNilValue ¶
func NewNilValue() NilValue
func (NilValue) MarshalJSON ¶
type NumberValue ¶
type NumberValue struct {
// contains filtered or unexported fields
}
func NewNumberValue ¶
func NewNumberValue(v float64) NumberValue
func (NumberValue) Err ¶
func (m NumberValue) Err() bool
func (NumberValue) Float ¶
func (m NumberValue) Float() float64
func (NumberValue) Int ¶
func (m NumberValue) Int() int64
func (NumberValue) MarshalJSON ¶
func (m NumberValue) MarshalJSON() ([]byte, error)
func (NumberValue) Nil ¶
func (m NumberValue) Nil() bool
func (NumberValue) Rv ¶
func (m NumberValue) Rv() reflect.Value
func (NumberValue) ToString ¶
func (m NumberValue) ToString() string
func (NumberValue) Type ¶
func (m NumberValue) Type() ValueType
func (NumberValue) Val ¶
func (m NumberValue) Val() float64
func (NumberValue) Value ¶
func (m NumberValue) Value() interface{}
type NumericValue ¶
Certain types are Numeric (Ints, Time, Number)
type Slice ¶
type Slice interface {
SliceValue() []Value
}
Slices can always return a []Value representation and is meant to be used when iterating over all items in a non-scalar value. Maps return their keys as a slice.
type SliceValue ¶
type SliceValue struct {
// contains filtered or unexported fields
}
func NewSliceValues ¶
func NewSliceValues(v []Value) SliceValue
func (*SliceValue) Append ¶
func (m *SliceValue) Append(v Value)
func (SliceValue) Err ¶
func (m SliceValue) Err() bool
func (SliceValue) Len ¶
func (m SliceValue) Len() int
func (SliceValue) MarshalJSON ¶
func (m SliceValue) MarshalJSON() ([]byte, error)
func (SliceValue) Nil ¶
func (m SliceValue) Nil() bool
func (SliceValue) Rv ¶
func (m SliceValue) Rv() reflect.Value
func (SliceValue) SliceValue ¶
func (m SliceValue) SliceValue() []Value
func (SliceValue) ToString ¶
func (m SliceValue) ToString() string
func (SliceValue) Type ¶
func (m SliceValue) Type() ValueType
func (SliceValue) Val ¶
func (m SliceValue) Val() []Value
func (SliceValue) Value ¶
func (m SliceValue) Value() interface{}
type StringValue ¶
type StringValue struct {
// contains filtered or unexported fields
}
func NewStringValue ¶
func NewStringValue(v string) StringValue
func (StringValue) Err ¶
func (m StringValue) Err() bool
func (StringValue) IntValue ¶
func (m StringValue) IntValue() IntValue
func (StringValue) MarshalJSON ¶
func (m StringValue) MarshalJSON() ([]byte, error)
func (StringValue) Nil ¶
func (m StringValue) Nil() bool
func (StringValue) NumberValue ¶
func (m StringValue) NumberValue() NumberValue
func (StringValue) Rv ¶
func (m StringValue) Rv() reflect.Value
func (StringValue) StringsValue ¶
func (m StringValue) StringsValue() StringsValue
func (StringValue) ToString ¶
func (m StringValue) ToString() string
func (StringValue) Type ¶
func (m StringValue) Type() ValueType
func (StringValue) Val ¶
func (m StringValue) Val() string
func (StringValue) Value ¶
func (m StringValue) Value() interface{}
type StringsValue ¶
type StringsValue struct {
// contains filtered or unexported fields
}
func NewStringsValue ¶
func NewStringsValue(v []string) StringsValue
func (*StringsValue) Append ¶
func (m *StringsValue) Append(sv string)
func (StringsValue) Err ¶
func (m StringsValue) Err() bool
func (StringsValue) IntValue ¶
func (m StringsValue) IntValue() IntValue
func (StringsValue) Len ¶
func (m StringsValue) Len() int
func (StringsValue) MarshalJSON ¶
func (m StringsValue) MarshalJSON() ([]byte, error)
func (StringsValue) Nil ¶
func (m StringsValue) Nil() bool
func (StringsValue) NumberValue ¶
func (m StringsValue) NumberValue() NumberValue
func (StringsValue) Rv ¶
func (m StringsValue) Rv() reflect.Value
func (StringsValue) Set ¶
func (m StringsValue) Set() map[string]struct{}
func (StringsValue) SliceValue ¶
func (m StringsValue) SliceValue() []Value
func (StringsValue) Strings ¶
func (m StringsValue) Strings() []string
func (StringsValue) ToString ¶
func (m StringsValue) ToString() string
func (StringsValue) Type ¶
func (m StringsValue) Type() ValueType
func (StringsValue) Val ¶
func (m StringsValue) Val() []string
func (StringsValue) Value ¶
func (m StringsValue) Value() interface{}
type StructValue ¶
type StructValue struct {
// contains filtered or unexported fields
}
func NewStructValue ¶
func NewStructValue(v interface{}) StructValue
func (StructValue) Err ¶
func (m StructValue) Err() bool
func (StructValue) MarshalJSON ¶
func (m StructValue) MarshalJSON() ([]byte, error)
func (StructValue) Nil ¶
func (m StructValue) Nil() bool
func (StructValue) Rv ¶
func (m StructValue) Rv() reflect.Value
func (StructValue) ToString ¶
func (m StructValue) ToString() string
func (StructValue) Type ¶
func (m StructValue) Type() ValueType
func (StructValue) Val ¶
func (m StructValue) Val() interface{}
func (StructValue) Value ¶
func (m StructValue) Value() interface{}
type TimeValue ¶
type TimeValue struct {
// contains filtered or unexported fields
}
func NewTimeValue ¶
func (TimeValue) MarshalJSON ¶
type Value ¶
type Value interface { // Is this a nil/empty? ie empty string? or nil struct, etc Nil() bool // Is this an error, or unable to evaluate from Vm? Err() bool Value() interface{} Rv() reflect.Value ToString() string Type() ValueType }
type ValueType ¶
type ValueType uint8
This is the DataType system, ie string, int, etc
const ( // Enum values for Type system, DO NOT CHANGE the numbers, do not use iota NilType ValueType = 0 ErrorType ValueType = 1 UnknownType ValueType = 2 NumberType ValueType = 10 IntType ValueType = 11 BoolType ValueType = 12 TimeType ValueType = 13 ByteSliceType ValueType = 14 StringType ValueType = 20 StringsType ValueType = 21 MapValueType ValueType = 30 MapIntType ValueType = 31 MapStringType ValueType = 32 MapNumberType ValueType = 33 MapBoolType ValueType = 34 SliceValueType ValueType = 40 StructType ValueType = 50 )
func ValueTypeFromRT ¶
Click to show internal directories.
Click to hide internal directories.