Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString unsafe convert byte array content to string This function do not allocate new buffer, reuse the bytes data.
func CurrentGoroutineId ¶ added in v1.2.0
func CurrentGoroutineId() int64
CurrentGoroutineId get current goroutine id by walk stack. This func get goroutine id by parse current stack string, the performance is not so good.
func InterfaceIsNil ¶ added in v1.6.0
func InterfaceIsNil(iface interface{}) bool
InterfaceIsNil return true if interface is nil or it's value is a nil pointer
func InterfaceValuePtr ¶ added in v1.6.0
InterfaceValuePtr return the value pointer of interface
func StringToBytes ¶
StringToBytes unsafe convert string to byte array This function do not allocate new buffer, reuse the string buffer.
Types ¶
type SliceHeader ¶ added in v1.7.1
SliceHeader copy from reflect.SliceHeader, using Data type unsafe.Pointer instead of unitptr, to prevent stack allocation, or free by gc
type StringHeader ¶ added in v1.7.1
StringHeader copy from reflect.StringHeader, using Data type unsafe.Pointer instead of unitptr, to prevent stack allocation, or free by gc