This repository has been archived on 2024-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
treefmt/internal/format/config.go
2023-12-23 12:50:51 +00:00

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
}