Documentation
¶
Overview ¶
包gtype提供高性能和线程安全的基础变量类型。 md5:94b883ebf0b43fd8
Index ¶
- type Any
- type Bool
- func (v *Bool) Cas(old, new bool) (swapped bool)
- func (v *Bool) Clone() *Bool
- func (v *Bool) DeepCopy() interface{}
- func (v Bool) MarshalJSON() ([]byte, error)
- func (v *Bool) String() string
- func (v *Bool) UnmarshalJSON(b []byte) error
- func (v *Bool) UnmarshalValue(value interface{}) error
- func (v *Bool) X取值() bool
- func (v *Bool) X设置值(value bool) (old bool)
- type Byte
- func (v *Byte) Add(delta byte) (new byte)
- func (v *Byte) Cas(old, new byte) (swapped bool)
- func (v *Byte) Clone() *Byte
- func (v *Byte) DeepCopy() interface{}
- func (v Byte) MarshalJSON() ([]byte, error)
- func (v *Byte) String() string
- func (v *Byte) UnmarshalJSON(b []byte) error
- func (v *Byte) UnmarshalValue(value interface{}) error
- func (v *Byte) X取值() byte
- func (v *Byte) X设置值(value byte) (old byte)
- type Bytes
- func (v *Bytes) Clone() *Bytes
- func (v *Bytes) DeepCopy() interface{}
- func (v Bytes) MarshalJSON() ([]byte, error)
- func (v *Bytes) String() string
- func (v *Bytes) UnmarshalJSON(b []byte) error
- func (v *Bytes) UnmarshalValue(value interface{}) error
- func (v *Bytes) X取值() []byte
- func (v *Bytes) X设置值(value []byte) (old []byte)
- type Float32
- func (v *Float32) Add(delta float32) (new float32)
- func (v *Float32) Cas(old, new float32) (swapped bool)
- func (v *Float32) Clone() *Float32
- func (v *Float32) DeepCopy() interface{}
- func (v Float32) MarshalJSON() ([]byte, error)
- func (v *Float32) String() string
- func (v *Float32) UnmarshalJSON(b []byte) error
- func (v *Float32) UnmarshalValue(value interface{}) error
- func (v *Float32) X取值() float32
- func (v *Float32) X设置值(value float32) (old float32)
- type Float64
- func (v *Float64) Add(delta float64) (new float64)
- func (v *Float64) Cas(old, new float64) (swapped bool)
- func (v *Float64) Clone() *Float64
- func (v *Float64) DeepCopy() interface{}
- func (v Float64) MarshalJSON() ([]byte, error)
- func (v *Float64) String() string
- func (v *Float64) UnmarshalJSON(b []byte) error
- func (v *Float64) UnmarshalValue(value interface{}) error
- func (v *Float64) X取值() float64
- func (v *Float64) X设置值(value float64) (old float64)
- type Int
- func (v *Int) Add(delta int) (new int)
- func (v *Int) Cas(old, new int) (swapped bool)
- func (v *Int) Clone() *Int
- func (v *Int) DeepCopy() interface{}
- func (v Int) MarshalJSON() ([]byte, error)
- func (v *Int) String() string
- func (v *Int) UnmarshalJSON(b []byte) error
- func (v *Int) UnmarshalValue(value interface{}) error
- func (v *Int) X取值() int
- func (v *Int) X设置值(value int) (old int)
- type Int32
- func (v *Int32) Add(delta int32) (new int32)
- func (v *Int32) Cas(old, new int32) (swapped bool)
- func (v *Int32) Clone() *Int32
- func (v *Int32) DeepCopy() interface{}
- func (v Int32) MarshalJSON() ([]byte, error)
- func (v *Int32) String() string
- func (v *Int32) UnmarshalJSON(b []byte) error
- func (v *Int32) UnmarshalValue(value interface{}) error
- func (v *Int32) X取值() int32
- func (v *Int32) X设置值(value int32) (old int32)
- type Int64
- func (v *Int64) Add(delta int64) (new int64)
- func (v *Int64) Cas(old, new int64) (swapped bool)
- func (v *Int64) Clone() *Int64
- func (v *Int64) DeepCopy() interface{}
- func (v Int64) MarshalJSON() ([]byte, error)
- func (v *Int64) String() string
- func (v *Int64) UnmarshalJSON(b []byte) error
- func (v *Int64) UnmarshalValue(value interface{}) error
- func (v *Int64) X取值() int64
- func (v *Int64) X设置值(value int64) (old int64)
- type Interface
- func (v *Interface) Clone() *Interface
- func (v *Interface) DeepCopy() interface{}
- func (v Interface) MarshalJSON() ([]byte, error)
- func (v *Interface) String() string
- func (v *Interface) UnmarshalJSON(b []byte) error
- func (v *Interface) UnmarshalValue(value interface{}) error
- func (v *Interface) X取值() interface{}
- func (v *Interface) X设置值(value interface{}) (old interface{})
- type String
- func (v *String) Clone() *String
- func (v *String) DeepCopy() interface{}
- func (v String) MarshalJSON() ([]byte, error)
- func (v *String) String() string
- func (v *String) UnmarshalJSON(b []byte) error
- func (v *String) UnmarshalValue(value interface{}) error
- func (v *String) X取值() string
- func (v *String) X设置值(value string) (old string)
- type Uint
- func (v *Uint) Add(delta uint) (new uint)
- func (v *Uint) Cas(old, new uint) (swapped bool)
- func (v *Uint) Clone() *Uint
- func (v *Uint) DeepCopy() interface{}
- func (v Uint) MarshalJSON() ([]byte, error)
- func (v *Uint) String() string
- func (v *Uint) UnmarshalJSON(b []byte) error
- func (v *Uint) UnmarshalValue(value interface{}) error
- func (v *Uint) X取值() uint
- func (v *Uint) X设置值(value uint) (old uint)
- type Uint32
- func (v *Uint32) Add(delta uint32) (new uint32)
- func (v *Uint32) Cas(old, new uint32) (swapped bool)
- func (v *Uint32) Clone() *Uint32
- func (v *Uint32) DeepCopy() interface{}
- func (v Uint32) MarshalJSON() ([]byte, error)
- func (v *Uint32) String() string
- func (v *Uint32) UnmarshalJSON(b []byte) error
- func (v *Uint32) UnmarshalValue(value interface{}) error
- func (v *Uint32) X取值() uint32
- func (v *Uint32) X设置值(value uint32) (old uint32)
- type Uint64
- func (v *Uint64) Add(delta uint64) (new uint64)
- func (v *Uint64) Cas(old, new uint64) (swapped bool)
- func (v *Uint64) Clone() *Uint64
- func (v *Uint64) DeepCopy() interface{}
- func (v Uint64) MarshalJSON() ([]byte, error)
- func (v *Uint64) String() string
- func (v *Uint64) UnmarshalJSON(b []byte) error
- func (v *Uint64) UnmarshalValue(value interface{}) error
- func (v *Uint64) X取值() uint64
- func (v *Uint64) X设置值(value uint64) (old uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Any ¶
type Any = Interface
Any是一个用于并发安全操作的any类型的结构体。 md5:40fc918c497f5cab
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool 是一个用于并发安全操作布尔类型的结构体。 md5:1d3e571c42d4a013
func (*Bool) DeepCopy ¶
func (v *Bool) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Bool) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Bool) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Byte ¶
type Byte struct {
// contains filtered or unexported fields
}
Byte是用于并发安全操作byte类型的结构体。 md5:260dada42dab3948
func (*Byte) DeepCopy ¶
func (v *Byte) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Byte) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Byte) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Byte) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes 是一个用于并发安全操作的[]byte类型的结构体。 md5:784dc0993857ec47
func (*Bytes) DeepCopy ¶
func (v *Bytes) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Bytes) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Bytes) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Bytes) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Float32 ¶
type Float32 struct {
// contains filtered or unexported fields
}
Float32是一个用于并发安全操作float32类型的结构体。 md5:df0c1aaf5f1f5645
func NewFloat32 ¶
NewFloat32 创建并返回一个针对float32类型的并发安全对象, 初始值为给定的`value`。 md5:a2e96663c9c91d0d
func (*Float32) DeepCopy ¶
func (v *Float32) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Float32) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Float32) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Float32) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
Float64 是一个用于并发安全操作 float64 类型的结构体。 md5:9134cad59fd8776a
func NewFloat64 ¶
NewFloat64 创建并返回一个针对 float64 类型的并发安全对象,初始值为 `value`。 md5:ef46288a8eea7230
func (*Float64) DeepCopy ¶
func (v *Float64) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Float64) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Float64) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Float64) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int 是一个结构体,用于实现类型int的并发安全操作。 md5:73f0c87f02f7764f
func (*Int) DeepCopy ¶
func (v *Int) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Int) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Int) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Int) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
Int32是一个用于int32类型并发安全操作的结构体。 md5:54bb3e06eb1184ea
func (*Int32) DeepCopy ¶
func (v *Int32) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Int32) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Int32) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Int32) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
Int64 是一个用于并发安全操作整型 int64 的结构体。 md5:563e61ea81d21a66
func (*Int64) DeepCopy ¶
func (v *Int64) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Int64) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Int64) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
Interface 是一个结构体,用于实现类型 interface{} 的并发安全操作。 md5:5655f929d7777a3d
func NewInterface ¶
func NewInterface(value ...interface{}) *Interface
NewInterface 创建并返回一个并发安全的对象,用于interface{}类型,初始值为`value`。 md5:4f93c81a49f5b2f6
func (*Interface) DeepCopy ¶
func (v *Interface) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Interface) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Interface) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Interface) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type String ¶
type String struct {
// contains filtered or unexported fields
}
String 是一个用于类型 string 的并发安全操作的结构体。 md5:33de4be4fa63f063
func (*String) DeepCopy ¶
func (v *String) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (String) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*String) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*String) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Uint ¶
type Uint struct {
// contains filtered or unexported fields
}
Uint 是一个用于类型 uint 的并发安全操作的结构体。 md5:3b5bf4b2533c3310
func (*Uint) DeepCopy ¶
func (v *Uint) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Uint) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Uint) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Uint) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
Uint32是一个用于类型uint32并发安全操作的结构体。 md5:916b918898b4b0fa
func (*Uint32) DeepCopy ¶
func (v *Uint32) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Uint32) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Uint32) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Uint32) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
Uint64是一个结构体,用于并发安全的uint64类型操作。 md5:6a07488d07d4b044
func (*Uint64) DeepCopy ¶
func (v *Uint64) DeepCopy() interface{}
DeepCopy实现当前类型的深拷贝接口。 md5:9cfbcb08109f6ce1
func (Uint64) MarshalJSON ¶
MarshalJSON 实现了接口 MarshalJSON 以供 json.Marshal 使用。 md5:43c3b36e60a18f9a
func (*Uint64) UnmarshalJSON ¶
UnmarshalJSON实现了json.Unmarshal接口的UnmarshalJSON方法。 md5:f6766b88cf3d63c2
func (*Uint64) UnmarshalValue ¶
UnmarshalValue 是一个接口实现,用于将任何类型的值设置为 `v`。 md5:f1b49be4502b95a4