✨ Add separator option
This commit is contained in:
parent
84994d3b73
commit
4b509d31bb
6 changed files with 37 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue