Documentation ¶
Index ¶
- type Boolean
- type Bytes
- type Double
- type Formatter
- type Getter
- type Kind
- type Long
- type Niler
- type Object
- func (o *Object) Boolean() (bool, bool)
- func (o *Object) Bytes() ([]byte, bool)
- func (o *Object) Double() (float64, bool)
- func (o *Object) Format(v any) string
- func (o *Object) Get() any
- func (o *Object) Long() (int64, bool)
- func (o Object) MarshalJSON() ([]byte, error)
- func (o *Object) Nil() bool
- func (o *Object) Parse(v any) (any, error)
- func (o *Object) Scan(v any) error
- func (o *Object) Set(v any)
- func (o *Object) String() string
- func (o *Object) Text() (string, bool)
- func (o *Object) Time() (time.Time, bool)
- func (o *Object) UnmarshalJSON(v []byte) error
- func (o *Object) Value() (driver.Value, error)
- type Parser
- type Setter
- type Text
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Getter ¶ added in v1.0.8
type Getter interface {
Get() any
}
lang.Getter Interface
Getter接口, Get函数获取当前值
type Kind ¶ added in v1.0.8
type Kind uint8
lang.Kind
定义类型列表: lang.TEXT, lang.LONG, lang.DOUBLE, lang.TIME, lang.BOOLEAN, lang.BYTES
默认值为: lang.TEXT
type Niler ¶ added in v1.0.8
type Niler interface {
Nil() bool
}
lang.Niller Interface
Niler接口, 当前值为nil时,Nil函数返回true
type Object ¶ added in v1.0.8
type Object struct {
// contains filtered or unexported fields
}
Object Struct
Object结构体
func (Object) MarshalJSON ¶ added in v1.0.8
实现json.Marshaler接口, 用于处理JSON序列化
func (*Object) UnmarshalJSON ¶ added in v1.0.8
实现json.Unmarshaler接口, 用于进行JSON反序列化
type Setter ¶ added in v1.0.8
type Setter interface {
Set(any)
}
lang.Setter Interface
Setter接口, Set函数设置当前值
Click to show internal directories.
Click to hide internal directories.