utils

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsInvalidChars added in v1.0.16

func ContainsInvalidChars(charset, s string) error

ContainsInvalidChars returns error if the provided string contains characters outside of the allowed character set.

func ContainsValidCharset added in v1.0.16

func ContainsValidCharset(charset, s string) error

ContainsValidCharset returns error if the provided string contains characters outside of the provided character set.

func GetRandomString

func GetRandomString(i int) string

GetRandomString returns X character long random string.

func GetRandomStringFromRange

func GetRandomStringFromRange(a, b int) string

GetRandomStringFromRange generates random string of a random length. The random lenght is bounded by a and b.

Types

This section is empty.

Jump to

Keyboard shortcuts

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