Documentation ¶
Index ¶
- func Contains(s string, substrings []string) map[string]bool
- func EndsWith(s string, substrings []string) map[string]bool
- func EraseDelimiter(input string, delimiters []string, n int) (string, error)
- func GenerateRandomBool() bool
- func GenerateRandomInt() int
- func GenerateRandomIntBetween(min, max int) int
- func Generate_random_n_string(n int) string
- func Generate_random_string(lengths ...int) string
- func GrabCWD() string
- func GrabExecutableName() string
- func GrabExecutablePath() string
- func GrabHomeDir() string
- func GrabUsername() string
- func IntToString(i int) string
- func StartsWith(s string, substrings []string) map[string]bool
- func StringToBoolean(s string) bool
- func StringToInt(s string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EraseDelimiter ¶
removes all specified delimiters from the input string `delimiters“ is a slice of strings to be removed `n` specifies the number of replacements (-1 for all of them) returns the cleaned string and an error if any
func GenerateRandomBool ¶
func GenerateRandomBool() bool
GenerateRandomBool generates a random boolean value.
func GenerateRandomIntBetween ¶
GenerateRandomIntBetween generates a random integer between min and max.
func Generate_random_n_string ¶
Generate_random_n_string generates a random string of length n.
func Generate_random_string ¶
Generate_random_string generates a random string of length n, or a default length if no argument is provided.
func GrabExecutableName ¶
func GrabExecutableName() string
GrabExutableName returns the name of the current executable
func GrabExecutablePath ¶
func GrabExecutablePath() string
GrabExecutablePath returns the path of the current executable
func StartsWith ¶
StartsWith checks if the string starts with any of the substrings in the list.
func StringToBoolean ¶
StringToBoolean converts a string to a boolean.
Types ¶
This section is empty.