Add separator option

This commit is contained in:
Dan Jones 2025-03-11 16:42:39 -05:00
commit 4b509d31bb
6 changed files with 37 additions and 8 deletions

View file

@ -5,12 +5,14 @@ type Config struct {
prefix string
suffix string
extension string
separator string
generator Generator
}
func NewConfig(options ...Option) Config {
conf := Config{
extension: ".txt",
separator: "_",
generator: uuidGen,
}
for _, opt := range options {