my-log/config/types.go

25 lines
382 B
Go

package config
type Config struct {
Input Input
Outputs Outputs `mapstructure:"output"`
Formatters Formatters
}
type Input struct {
Path string
Recurse bool
Ext string
DotFolder bool `mapstructure:"dotFolder"`
}
type Outputs map[string]Output
type Output struct {
Enabled bool
Config map[string]any
}
type Formatters struct {
Preferred string
}