Documentation
¶
Index ¶
- func String(value any) string
- type Var
- func (v *Var) Bool() bool
- func (v *Var) Float64() float64
- func (v *Var) Int() int
- func (v *Var) Int64() int64
- func (v *Var) Interface() any
- 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) Map() map[string]any
- func (v *Var) MarshalJSON() ([]byte, error)
- func (v *Var) Set(value any) (old any)
- func (v *Var) String() string
- func (v *Var) Time(format ...string) time.Time
- func (v *Var) Uint64() uint64
- func (v *Var) UnmarshalJSON(b []byte) error
- func (v *Var) Val() any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Var ¶
type Var struct {
// contains filtered or unexported fields
}
Var is a universal variable type implementation.
func New ¶
New creates and returns a new Var. The safe parameter is used to specify whether to enable thread safety, the default is false.
func (*Var) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Var) Time ¶
Time converts the value to a time.Time. The format parameter is used to specify the format of the time string.
func (*Var) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.