diff --git a/passphrase.go b/passphrase.go index b433c5a..8ce06bb 100644 --- a/passphrase.go +++ b/passphrase.go @@ -16,22 +16,17 @@ var ( // Passphrase represents a sequence of words/syllables with a separator between them. type Passphrase struct { - words []string - - // Number of words in the passphrase. - Length uint64 - - // Words separator. - Separator string - // List used to generate the passphrase. List list - + // Words separator. + Separator string + words []string // Words that will be part of the passphrase. Include []string - // Words that won't be part of the passphrase. Exclude []string + // Number of words in the passphrase. + Length uint64 } type list func(p *Passphrase, length int) diff --git a/password.go b/password.go index 0682a7d..28db7c7 100644 --- a/password.go +++ b/password.go @@ -23,18 +23,14 @@ type Level string type Password struct { pool string - // Password length. - Length uint64 - - // Group of characters used to generate the pool. - Levels []Level - // Characters that will be part of the password. Include string - // Characters that won't be part of the password. Exclude string - + // Group of characters used to generate the pool. + Levels []Level + // Password length. + Length uint64 // Character repetition. Repeat bool }