✨ 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
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue