func Path(paths []string) (string, error) {

	// check if the config file exists on any paths
	for _, p := range paths {
		if _, err := os.Stat(p); err == nil {
			return p, nil
		}
	}

	// we can't find the config file if we make it this far
	return "", fmt.Errorf("could not locate config file")
}
// Path returns the config file path
Path returns the config file path
// Path returns the config file path
func Path(paths []string) (string, error) {
	for _, p := range paths {
		if _, err := os.Stat(p); err == nil {
			return p, nil
		}
	}
	return "", fmt.Errorf("could not locate config file")
}
func Path ( paths [ ] string ) ( string , error ) { for _ , p := range paths { if _ , err := os . Stat ( p ) ; err == nil { return p , nil } } return " " , fmt . Errorf ( " " ) }
Path returns the config file path
Path returns the config file path
// check if the config file exists on any paths // we can't find the config file if we make it this far