Documentation ¶
Index ¶
- Constants
- func ToString(v interface{}) string
- type Type
- type Value
- func (v Value) Bool() bool
- func (v Value) ByteCount() string
- func (v Value) Cast(dst interface{}) error
- func (v Value) Duration() (time.Duration, error)
- func (v Value) Float() float64
- func (v Value) Float32() float32
- func (v Value) Float64() float64
- func (v Value) HasProp(name string) bool
- func (v Value) Indirect() reflect.Value
- func (v Value) IndirectType() reflect.Type
- func (v Value) Int() int
- func (v Value) Int16() int16
- func (v Value) Int32() int32
- func (v Value) Int64() int64
- func (v Value) Int8() int8
- func (v Value) Is(s string) bool
- func (v Value) IsEmpty() bool
- func (v Value) IsNil() bool
- func (v *Value) MarshalJSON() ([]byte, error)
- func (v *Value) MarshalYAML() ([]byte, error)
- func (v Value) ParseJSON(in interface{}) error
- func (v Value) Prop(property string) Value
- func (v Value) PropByTag(tag string) Value
- func (v Value) Props() []reflect.StructField
- func (v Value) SameAs(s interface{}) bool
- func (v *Value) Scan(value interface{}) error
- func (v Value) SetProp(property string, value interface{}) error
- func (v Value) SizeInBytes() uint64
- func (v Value) String() string
- func (v Value) Time() (time.Time, error)
- func (v Value) Uint() uint
- func (v Value) Uint16() uint16
- func (v Value) Uint32() uint32
- func (v Value) Uint64() uint64
- func (v Value) Uint8() uint8
- func (v *Value) UnmarshalJSON(data []byte) error
- func (v *Value) UnmarshalYAML(data []byte) error
- func (v Value) Value() (driver.Value, error)
Constants ¶
View Source
const ( Invalid reflect.Kind = iota Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Uintptr Float32 Float64 Complex64 Complex128 Array Chan Func Interface Map Ptr Slice String Struct UnsafePointer )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
Type lib structure to keep input and its type
func TypeOf ¶
func TypeOf(input interface{}) *Type
TypeOf return type of input
@param input @return *Type
type Value ¶
type Value struct {
Input interface{}
}
Value wraps over interface
func (Value) Duration ¶
Duration return value as time.Duration
@receiver v @return time.Duration @return error
func (Value) IndirectType ¶
func (*Value) MarshalJSON ¶
func (*Value) MarshalYAML ¶
func (Value) Props ¶
func (v Value) Props() []reflect.StructField
func (Value) SizeInBytes ¶
func (*Value) UnmarshalJSON ¶
func (*Value) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.