adopt to review

change formatting options to separate struct and clean up
This commit is contained in:
Cubicroot 2021-05-02 15:37:54 +02:00
parent fe1cbdf79e
commit 2ff9f5972a
6 changed files with 22 additions and 20 deletions

View file

@ -18,6 +18,11 @@ type CryptoConfig struct {
Argon2 Argon2Config
}
// Formatting holds additional parameters used for formatting messages
type Formatting struct {
ColoredTitle bool `default:"false"`
}
// Configuration holds values that can be configured by the user.
type Configuration struct {
Debug bool `default:"false"`
@ -42,8 +47,8 @@ type Configuration struct {
Security struct {
CheckHIBP bool `default:"false"`
}
Crypto CryptoConfig
Message map[string]interface{}
Crypto CryptoConfig
Formatting Formatting
}
func configFiles() []string {