✨ Add UUID generator
This commit is contained in:
parent
bd8f9ae8a6
commit
0fc4369679
6 changed files with 68 additions and 5 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue