13 lines
238 B
Go
13 lines
238 B
Go
package format
|
|
|
|
import "github.com/BurntSushi/toml"
|
|
|
|
type Config struct {
|
|
Formatters map[string]*Formatter `toml:"formatter"`
|
|
}
|
|
|
|
func ReadConfigFile(path string) (cfg *Config, err error) {
|
|
_, err = toml.DecodeFile(path, &cfg)
|
|
return
|
|
}
|