package main import ( "fmt" "github.com/wneessen/apg-go" ) func main() { config := apg.NewConfig(apg.WithAlgorithm(apg.AlgoRandom), apg.WithModeMask(apg.ModeSpecial|apg.ModeNumeric|apg.ModeLowerCase|apg.ModeUpperCase), apg.WithFixedLength(15)) generator := apg.New(config) password, err := generator.Generate() if err != nil { panic(err) } fmt.Println("Your password:", password) }