func ReadConfig() (*Config, error) {
	file := configFilePath()

	var c Config
	if _, err := os.Stat(file); err == nil {
		// Read and unmarshal file only if it exists
		f, err := ioutil.ReadFile(file)
		if err != nil {
			return nil, err
		}

		err = yaml.Unmarshal(f, &c)
		if err != nil {
			return nil, err
		}
	}

	return &c, nil
}
// ReadConfig reads the configuration information
ReadConfig reads the configuration information
// ReadConfig reads the configuration information
func ReadConfig() (*Config, error) {
	file := configFilePath()
	var c Config
	if _, err := os.Stat(file); err == nil {
		f, err := ioutil.ReadFile(file)
		if err != nil {
			return nil, err
		}
		err = yaml.Unmarshal(f, &c)
		if err != nil {
			return nil, err
		}
	}
	return &c, nil
}
func ReadConfig ( ) ( * Config , error ) { file := configFilePath ( ) var c Config if _ , err := os . Stat ( file ) ; err == nil { f , err := ioutil . ReadFile ( file ) if err != nil { return nil , err } err = yaml . Unmarshal ( f , & c ) if err != nil { return nil , err } } return & c , nil }
ReadConfig reads the configuration information
ReadConfig reads the configuration information
// Read and unmarshal file only if it exists