go-pwgen/api.go

14 lines
217 B
Go
Raw Normal View History

2023-04-25 13:56:11 +00:00
package pwgen
type Int32n interface {
Int31n(n int32) int32
}
type GenerationOption interface {
2023-04-25 13:56:11 +00:00
ApplyToOptions(options *options)
}
type Generator interface {
Generate(opts ...GenerationOption) (string, error)
2023-04-25 13:56:11 +00:00
}