apg-go/apg.go
Winni Neessen 61ca9af22a
Refactor Generator struct and New function in apg.go
Removed the unused 'charRange' field from the Generator struct. Also, renamed the parameter in the New function from 'c' to 'config' for better clarity and understanding of its purpose.
2024-03-08 10:21:57 +01:00

17 lines
362 B
Go

package apg
// VERSION represents the version string
const VERSION = "2.0.0"
// Generator is the password generator type of the APG package
type Generator struct {
// config is a pointer to the apg config instance
config *Config
}
// New returns a new password Generator type
func New(config *Config) *Generator {
return &Generator{
config: config,
}
}