go-pass-gen/passGen/options.go
Ruidy Nemausat 97a1724001
init project
2021-10-20 13:48:06 +02:00

13 lines
170 B
Go

package passGen
type Options struct {
Length int
WithNumbers bool
}
func (o *Options) SetDefaults() *Options {
if o.Length == 0 {
o.Length = 6
}
return o
}