Load config from file with defaults

This commit is contained in:
Dan Jones 2024-02-04 18:19:19 -06:00
commit 40f9518611
8 changed files with 127 additions and 2 deletions

17
config/types.go Normal file
View file

@ -0,0 +1,17 @@
package config
type Config struct {
Input Input
Outputs map[string]Output `toml:"output"`
}
type Input struct {
Path string
Recurse bool
Ext string
}
type Output struct {
Enabled bool
Config map[string]any
}