Allow formatters to use sub-config with their own config structs

This commit is contained in:
Dan Jones 2026-03-08 23:29:36 -05:00
commit 6c6a959af4
4 changed files with 21 additions and 21 deletions

View file

@ -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
}