README ¶ Unsafe string↔[]byte conversion library The library 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. See https://mina86.com/2017/golang-string-and-bytes/ for some more info. Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ +build go1.20 Index ¶ func Bytes(v string) []byte func String(v []byte) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Bytes ¶ func Bytes(v string) []byte func String ¶ func String(v []byte) string Types ¶ This section is empty. Source Files ¶ View all Source files unsafeConvert.go Click to show internal directories. Click to hide internal directories.