utils

package
v0.0.0-...-a727419 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CapitalList   = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	LowercaseList = "abcdefghijklmnopqrstuvwxyz"
	NumbersList   = "0123456789"
)

Functions

func Alphabetize

func Alphabetize[E cmp.Ordered](m map[string]E) ([]string, []E)

func ArrayContains

func ArrayContains[T comparable](arr []T, item T) bool

func Btoi

func Btoi(b bool) int8

func CheckEmptyFields

func CheckEmptyFields(payload any, exceptions ...string) bool

func CheckPassword

func CheckPassword(password string) bool

func Clear

func Clear()

func ConvertToBase64

func ConvertToBase64(dest, structObj any) error

func CreateLicense

func CreateLicense(s ...LicenseSettings) string

func GenerateRandomString

func GenerateRandomString(length int) string

func ResizeTerminal

func ResizeTerminal(x, y string)

func Run

func Run(name string, arg ...string)

func SetTitle

func SetTitle(format string, content ...interface{})

func StringsToBytes

func StringsToBytes(s []string) []byte

Types

type LicenseSettings

type LicenseSettings struct {
	Mask          string
	OnlyCapitals  bool
	OnlyLowercase bool
}

Jump to

Keyboard shortcuts

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