From 7a906389c4bce0481833716822e9da5e93d661d5 Mon Sep 17 00:00:00 2001 From: GGP1 Date: Wed, 20 Oct 2021 23:09:45 -0300 Subject: [PATCH] Align structs fields --- passphrase.go | 15 +++++---------- password.go | 12 ++++-------- 2 files changed, 9 insertions(+), 18 deletions(-) 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 }