Documentation
¶
Index ¶
- func BytesToString(b []byte) string
- func DefaultGetEnv(key string, default_ string) string
- func ParseUint64(val string) (uint64, error)
- func Str2Uint32(val string, default_ uint32) uint32
- func Str2Uint64(val string, default_ uint64) uint64
- func StringToBytes(s string) []byte
- func ToSnakeCase(input string) string
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts byte slice to string without a memory allocation.
func DefaultGetEnv ¶
func ParseUint64 ¶
func Str2Uint32 ¶
func Str2Uint64 ¶
func StringToBytes ¶
StringToBytes converts string to byte slice without a memory allocation.
func ToSnakeCase ¶
ToSnakeCase converts the provided string to snake_case. Based on https://gist.github.com/stoewer/fbe273b711e6a06315d19552dd4d33e6
Types ¶
Click to show internal directories.
Click to hide internal directories.