util

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandStringWithAll added in v0.3.4

func RandStringWithAll(n int) string

func RandStringWithSmall added in v0.3.4

func RandStringWithSmall(n int) string

func SecureRandomString added in v0.3.4

func SecureRandomString(availableCharBytes string, length int) string

SecureRandomString returns a string of the requested length, made from the byte characters provided (only ASCII allowed). Uses crypto/rand for security. Will panic if len(availableCharBytes) > 256.

Types

This section is empty.

Jump to

Keyboard shortcuts

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