This commit cleans up the package structure, to make two new top-level packages `internal` (for internal-use packages) and `pkg` (for general shared utility code).
8 lines
264 B
Go
8 lines
264 B
Go
package config
|
|
|
|
import "github.com/FAU-CDI/wisski-distillery/pkg/password"
|
|
|
|
// NewPassword returns a new password using the password settings from this configuration
|
|
func (cfg Config) NewPassword() (string, error) {
|
|
return password.Password(cfg.PasswordLength)
|
|
}
|