4 "github.com/go-playground/validator/v10"
5 "github.com/jhalter/mobius/hotline"
11 func LoadConfig(path string) (*hotline.Config, error) {
12 var config hotline.Config
14 yamlFile, err := os.ReadFile(path)
18 err = yaml.Unmarshal(yamlFile, &config)
20 log.Fatalf("Unmarshal: %v", err)
23 validate := validator.New()
24 err = validate.Struct(config)