unsafeConvert

package module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 46

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(v string) []byte

func Int64ToString added in v1.1.0

func Int64ToString(v int64) string

func IntToString added in v1.1.0

func IntToString(v int) string

func String

func String(v []byte) string

func StringToInt added in v1.1.0

func StringToInt(v string) int

func StringToInt64 added in v1.1.0

func StringToInt64(v string) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL