mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-25 07:10:50 +01:00
Winni Neessen
61ca9af22a
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.
17 lines
362 B
Go
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,
|
|
}
|
|
}
|