✨ Allow formatters to use sub-config with their own config structs
This commit is contained in:
parent
9f05f933dd
commit
6c6a959af4
4 changed files with 21 additions and 21 deletions
|
|
@ -5,9 +5,10 @@ import (
|
|||
|
||||
"codeberg.org/danjones000/my-log/models"
|
||||
"codeberg.org/danjones000/my-log/tools"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
func newPlain(ff map[string]any) (Formatter, error) {
|
||||
func newPlain(ff *viper.Viper) (Formatter, error) {
|
||||
return &PlainText{}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue