Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.0.0-...-28a4607 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword(length int) string

GeneratePassword generates a random password of given length (default 14). It guarantees at least 1 lowercase, 1 uppercase, 1 digit, and 1 special character.

func GenerateUUID

func GenerateUUID() string

GenerateUUID generates a random UUID.

func MakeTraceHeaders

func MakeTraceHeaders() map[string]string

MakeTraceHeaders generates Datadog-compatible trace headers.

func RandStr

func RandStr(length int) string

RandStr generates a random alphanumeric string of given length.

func RandomBirthdate

func RandomBirthdate() string

RandomBirthdate returns a random birthdate string in YYYY-MM-DD format from 1985-2002.

func RandomName

func RandomName() (string, string)

RandomName returns a random first and last name using gofakeit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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