Documentation ¶
Overview ¶
Package unsafeConvert provides functions for unsafely convert between a string and a slice of bytes. You probably shouldn’t use it unless you need to squeeze extra performance from your performance-critical code path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶ added in v0.0.10
Bytes converts a string into a slice of bytes without performing a copy. NOTE: This is an unsafe operation and may lead to problems if the bytes are changed.
func String ¶ added in v0.0.10
String converts a slice of bytes into a string without performing a copy. NOTE: This is an unsafe operation and may lead to problems if the bytes passed as argument are changed while the string is used. No checking whether bytes are valid UTF-8 data is performed.
func VisibleFields ¶
func VisibleFields(t reflect.Type) []reflect.StructField
Types ¶
This section is empty.