♻️ Export Config

This commit is contained in:
Dan Jones 2025-03-10 14:52:50 -05:00
commit 7bd5503613
6 changed files with 56 additions and 38 deletions

20
config.go Normal file
View file

@ -0,0 +1,20 @@
package nomino
type Config struct {
original string
prefix string
suffix string
extension string
generator Generator
}
func NewConfig(options ...Option) Config {
conf := Config{
extension: ".txt",
generator: uuidGen,
}
for _, opt := range options {
opt(&conf)
}
return conf
}