util

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LowerCase = "abcdefghijklmnopqrstuvwxyz"
	UpperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	Letters   = LowerCase + UpperCase
	Digits    = "0123456789"
)

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(buf []byte) (str string)

If you know for sure that the byte slice won't be mutated, you won't get bounds (or GC) issues with the above conversions.

func RandomString

func RandomString(n int, categories ...string) string

random n byte string, not used for security!!!

func StringToBytes

func StringToBytes(str string) (buf []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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