mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-17 11:57:15 +03:00
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
|
||
|
}
|