Add UUID generator

This commit is contained in:
Dan Jones 2025-03-07 17:00:38 -06:00
commit 0fc4369679
6 changed files with 68 additions and 5 deletions

View file

@ -2,7 +2,7 @@ package nomino
import "strings"
type generator func() string
type generator func() (string, error)
type config struct {
original string
@ -15,7 +15,7 @@ type config struct {
func defaultConf() config {
return config{
extension: ".txt",
generator: func() string { return "abc" },
generator: uuidGen,
}
}