// Decodes and reads the yaml.
Decodes and reads the yaml.
// Decodes and reads the yaml .
func readYAML(path string, cfg *Config) error {
	file, err := os.Open(path)
	if err != nil {
		return err
	}
	decoder := yaml.NewDecoder(file)
	return decoder.Decode(cfg)
}
func readYAML ( path string , cfg * Config ) error { file , err := os . Open ( path ) if err != nil { return err } decoder := yaml . NewDecoder ( file ) return decoder . Decode ( cfg ) }
Decodes and reads the yaml.
Decodes and reads the yaml .