Skip to content

Commit

Permalink
Align structs fields
Browse files Browse the repository at this point in the history
  • Loading branch information
GGP1 committed Oct 21, 2021
1 parent 7e5d617 commit 7a90638
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
15 changes: 5 additions & 10 deletions passphrase.go
Expand Up @@ -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)
Expand Down
12 changes: 4 additions & 8 deletions password.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 7a90638

Please sign in to comment.