utils

package
v0.0.0-...-0494e13 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStringToInt

func ConvertStringToInt(character string) (data int, err error)

ConvertStringToInt - converts a string to an integer

func GenerateRandomInt

func GenerateRandomInt(n int) string

GenerateRandomInt - generates a random int string of provided length

func GenerateRandomNum

func GenerateRandomNum(n int) string

func GenerateRandomString

func GenerateRandomString(n int) string

GenerateRandomString - generates a random string of provided length

func MatchRegex

func MatchRegex(matchMe string, shouldMatch string) (bool, error)

MatchRegex function to test if a string matches another string using regex. Returns a bool and an error if present

func NumWithCharset

func NumWithCharset(length int, charset string) string

func StringWithCharset

func StringWithCharset(length int, charset string) string

StringWithCharset - takes in a group of characters and used the seeded random function to pick randomly

func UppercaseName

func UppercaseName(name string) string

UppercaseName convert user first name and last name to have first character capitalized

Types

This section is empty.

Jump to

Keyboard shortcuts

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