✨ Add separator option
This commit is contained in:
parent
84994d3b73
commit
4b509d31bb
6 changed files with 37 additions and 8 deletions
11
make.go
11
make.go
|
|
@ -11,5 +11,16 @@ func Make(conf Config) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
if conf.prefix != "" {
|
||||
conf.prefix = conf.prefix + conf.separator
|
||||
}
|
||||
if conf.original != "" {
|
||||
conf.original = conf.separator + conf.original
|
||||
}
|
||||
if conf.suffix != "" {
|
||||
conf.suffix = conf.separator + conf.suffix
|
||||
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s%s%s%s%s", conf.prefix, name, conf.original, conf.suffix, conf.extension), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue