Documentation
¶
Index ¶
- type Var
- func (v *Var) Bool() bool
- func (v *Var) Bytes() []byte
- func (v *Var) Clone() *Var
- func (v *Var) DeepCopy() interface{}
- func (v *Var) Duration() time.Duration
- func (v *Var) Float32() float32
- func (v *Var) Float64() float64
- func (v *Var) Int() int
- func (v *Var) Int8() int8
- func (v *Var) Int16() int16
- func (v *Var) Int32() int32
- func (v *Var) Int64() int64
- func (v *Var) Interface() interface{}
- func (v *Var) IsEmpty() bool
- func (v *Var) IsFloat() bool
- func (v *Var) IsInt() bool
- func (v *Var) IsMap() bool
- func (v *Var) IsNil() bool
- func (v *Var) IsSlice() bool
- func (v *Var) IsStruct() bool
- func (v *Var) IsUint() bool
- func (v *Var) MarshalJSON() ([]byte, error)
- func (v *Var) Release()
- func (v *Var) Set(value interface{}) (old interface{})
- func (v *Var) String() string
- func (v *Var) Time(format ...string) time.Time
- func (v *Var) Uint() uint
- func (v *Var) Uint8() uint8
- func (v *Var) Uint16() uint16
- func (v *Var) Uint32() uint32
- func (v *Var) Uint64() uint64
- func (v *Var) UnmarshalJSON(b []byte) error
- func (v *Var) UnmarshalValue(value interface{}) error
- func (v *Var) Val() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Var ¶
type Var struct {
// contains filtered or unexported fields
}
func (*Var) MarshalJSON ¶
MarshalJSON 实现 json.Marshal 的 MarshalJSON 接口
func (*Var) Set ¶
func (v *Var) Set(value interface{}) (old interface{})
Set 方法需要修复以正确处理 interface{} 类型
func (*Var) UnmarshalJSON ¶
UnmarshalJSON 实现 json.Unmarshal 的 UnmarshalJSON 接口
func (*Var) UnmarshalValue ¶
UnmarshalValue 实现接口,为 Var 设置任意类型的值
Click to show internal directories.
Click to hide internal directories.