Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Bytes returns a new SafeBytes instance Bytes = NewSafeBytes // BytesS returns a new SafeBytes instance (from string) BytesS = NewSafeBytesFromString )
View Source
var ( // Int32 returns a new SafeInt32 instance Int32 = NewSafeInt32 )
View Source
var ( // Uint64 returns a new SafeUint64 instance Uint64 = NewSafeUint64 )
Functions ¶
This section is empty.
Types ¶
type SafeBytes ¶
type SafeBytes struct {
// contains filtered or unexported fields
}
SafeBytes is a thread safe []byte
func NewSafeBytes ¶
NewSafeBytes returns a new SafeBytes from []byte
func NewSafeBytesFromString ¶
NewSafeBytesFromString returns a new SafeBytes from string
type SafeInt32 ¶
type SafeInt32 struct {
// contains filtered or unexported fields
}
SafeInt32 is a thread safe int32 equivalent
func NewSafeInt32 ¶
NewSafeInt32 returns a new SafeInt32 instance
type SafeInt64 ¶
type SafeInt64 struct {
// contains filtered or unexported fields
}
SafeInt64 is a thread safe int64 equivalent
func NewSafeInt64 ¶
NewSafeInt64 returns a new SafeInt64 instance
type SafeUint64 ¶
type SafeUint64 struct {
// contains filtered or unexported fields
}
SafeUint64 is a thread safe uint64 equivalent
func NewSafeUint64 ¶
func NewSafeUint64(value uint64) *SafeUint64
NewSafeUint64 returns a new SafeUint64 instance
Click to show internal directories.
Click to hide internal directories.