Documentation ¶
Index ¶
- type Bool
- func (that *Bool) Cas(old, new bool) (swapped bool)
- func (that *Bool) Clone() *Bool
- func (that *Bool) MarshalJson() ([]byte, error)
- func (that *Bool) Set(val bool) (old bool)
- func (that *Bool) String() string
- func (that *Bool) UnmarshalJson(b []byte) error
- func (that *Bool) UnmarshalValue(value interface{}) error
- func (that *Bool) Val() bool
- type Int
- func (that *Int) Add(delta int) (new int)
- func (that *Int) Cas(old, new int) (swapped bool)
- func (that *Int) Clone() *Int
- func (that *Int) MarshalJSON() ([]byte, error)
- func (that *Int) Reduce(delta int) (new int)
- func (that *Int) Set(val int) (old int)
- func (that *Int) String() string
- func (that *Int) UnmarshalJSON(b []byte) error
- func (that *Int) UnmarshalValue(value interface{}) error
- func (that *Int) Val() int
- type Int32
- func (that *Int32) Add(delta int32) (new int32)
- func (that *Int32) Cas(old, new int32) (swapped bool)
- func (that *Int32) Clone() *Int32
- func (that *Int32) MarshalJSON() ([]byte, error)
- func (that *Int32) Reduce(delta int32) (new int32)
- func (that *Int32) Set(val int32) (old int32)
- func (that *Int32) String() string
- func (that *Int32) UnmarshalJSON(b []byte) error
- func (that *Int32) UnmarshalValue(value interface{}) error
- func (that *Int32) Val() int
- type Int64
- func (that *Int64) Add(delta int64) (new int64)
- func (that *Int64) Cas(old, new int64) (swapped bool)
- func (that *Int64) Clone() *Int64
- func (that *Int64) MarshalJSON() ([]byte, error)
- func (that *Int64) Reduce(delta int64) (new int64)
- func (that *Int64) Set(val int64) (old int64)
- func (that *Int64) String() string
- func (that *Int64) UnmarshalJSON(b []byte) error
- func (that *Int64) UnmarshalValue(value interface{}) error
- func (that *Int64) Val() int64
- type Interface
- func (that *Interface) Clone() *Interface
- func (that *Interface) MarshalJSON() ([]byte, error)
- func (that *Interface) Set(value interface{}) (old interface{})
- func (that *Interface) String() string
- func (that *Interface) UnmarshalJSON(b []byte) error
- func (that *Interface) UnmarshalValue(value interface{}) error
- func (that *Interface) Val() interface{}
- type String
- func (that *String) Clone() *String
- func (that *String) MarshalJSON() ([]byte, error)
- func (that *String) Set(value string) (old string)
- func (that *String) String() string
- func (that *String) UnmarshalJSON(b []byte) error
- func (that *String) UnmarshalValue(value interface{}) error
- func (that *String) Val() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
并发安全的 bool 对象
func (*Bool) UnmarshalValue ¶
json反序列化的时候针对值的判断
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int 并发安全的int对象
func (*Int) UnmarshalValue ¶
UnmarshalValue 值的反序列化
type Int32 ¶ added in v0.0.3
type Int32 struct {
// contains filtered or unexported fields
}
Int32 并发安全的int对象
func (*Int32) MarshalJSON ¶ added in v0.0.3
MarshalJSON json序列化
func (*Int32) UnmarshalJSON ¶ added in v0.0.3
UnmarshalJSON json反序列化
func (*Int32) UnmarshalValue ¶ added in v0.0.3
UnmarshalValue 值的反序列化
type Int64 ¶ added in v0.0.3
type Int64 struct {
// contains filtered or unexported fields
}
Int64 并发安全的int对象
func (*Int64) MarshalJSON ¶ added in v0.0.3
MarshalJSON json序列化
func (*Int64) UnmarshalJSON ¶ added in v0.0.3
UnmarshalJSON json反序列化
func (*Int64) UnmarshalValue ¶ added in v0.0.3
UnmarshalValue 值的反序列化
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
func (*Interface) MarshalJSON ¶
MarshalJSON 序列化json
func (*Interface) UnmarshalJSON ¶
UnmarshalJSON 反序列化json
func (*Interface) UnmarshalValue ¶
UnmarshalValue 反序列化值
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (*String) MarshalJSON ¶
func (*String) UnmarshalJSON ¶
func (*String) UnmarshalValue ¶
Click to show internal directories.
Click to hide internal directories.