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

@ -2,9 +2,10 @@ package formatters
import (
"codeberg.org/danjones000/my-log/models"
"github.com/spf13/viper"
)
func newNull(ff map[string]any) (Formatter, error) {
func newNull(ff *viper.Viper) (Formatter, error) {
return &Null{}, nil
}