utils

package
v0.0.0-...-e016302 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LettersSet = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
View Source
var NumAndLettersSet = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
View Source
var NumSet = []rune("0123456789")
View Source
var RandStringFlag = "random string"
View Source
var RandUUIDFlag = "random UUID"

Functions

func GetDefaultBrowser

func GetDefaultBrowser() (string, error)

func GetStructField

func GetStructField(s any, field string) (any, bool)

func ParseEmail

func ParseEmail(entry string) (string, error)

func ParseRandomString

func ParseRandomString(entry string, length uint) string

func ParseRandomUUID

func ParseRandomUUID(entry string) (string, error)

func PrettifyJSON

func PrettifyJSON(data interface{}) (string, error)

func RandomString

func RandomString(set []rune, length uint) string

func RunCommand

func RunCommand(command string, args ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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