Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Implements ¶
Implements returns whether `obj` implements `T`. Uses Golang built-in type assertion.
func MustGetAs ¶
MustGetAs returns `obj` as type `T`. Will panic if `obj` is not of type `T`. Uses Golang built-in type assertion.
func UnsafeBytesToStr ¶
UnsafeBytesToStr is meant to make a zero allocation conversion from []byte -> string to speed up operations, it is not meant to be used generally, but for a specific pattern to delete keys from a map.
func UnsafeStrToBytes ¶
UnsafeStrToBytes uses unsafe to convert string into byte array. Returned bytes must not be altered after this function is called as it will cause a segmentation fault.
Types ¶
Click to show internal directories.
Click to hide internal directories.