func GetConfigPath() string {
	if path := os.Getenv("SLACKDUTY_CONFIG"); path != "" {
		return path
	}

	userHome := ""
	usr, err := user.Current()
	if err != nil {
		// Fallback by reading $HOME environment variables
		userHome = os.Getenv("HOME")
	} else {
		userHome = usr.HomeDir
	}

	return userHome + defaultConfigPath
}
// GetConfigPath retrieves the config.yml file
GetConfigPath retrieves the config.yml file
// GetConfigPath retrieves the config . yml file
func GetConfigPath() string {
	if path := os.Getenv("SLACKDUTY_CONFIG"); path != "" {
		return path
	}
	userHome := ""
	usr, err := user.Current()
	if err != nil {
		userHome = os.Getenv("HOME")
	} else {
		userHome = usr.HomeDir
	}
	return userHome + defaultConfigPath
}
func GetConfigPath ( ) string { if path := os . Getenv ( " " ) ; path != " " { return path } userHome := " " usr , err := user . Current ( ) if err != nil { userHome = os . Getenv ( " " ) } else { userHome = usr . HomeDir } return userHome + defaultConfigPath }
GetConfigPath retrieves the config.yml file
GetConfigPath retrieves the config . yml file
// Fallback by reading $HOME environment variables