utila

package
v0.0.0-...-30b40a1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RandomStringNumber    = "0123456789"
	RandomStringLowercase = "abcdefghijklmnopqrstuvwxyz"
	RandomStringUppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	RandomStringGeneral   = RandomStringNumber + RandomStringLowercase + RandomStringUppercase
)
View Source
var (
	Validate    = validator.New(validator.WithRequiredStructEnabled())
	ValidDomain = regexp.MustCompile(`^(?:[0-9\p{L}](?:[0-9\p{L}-]{0,61}[0-9\p{L}])?\.)+[0-9\p{L}][0-9\p{L}-]{0,61}[0-9\p{L}]$`).MatchString
)

Functions

func Atou

func Atou(s string) (uint, error)

func CapitalPeriod

func CapitalPeriod(s string) string

func NilData

func NilData(val any) bool

func OrdinalNumber

func OrdinalNumber(i int) string

func RandomString

func RandomString(charset string, length int) string

func Utoa

func Utoa(i uint) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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