func LoadClientConfigOrPass(configPath string) error {
	var err error

	// Try custom path first
	if configPath != "" {
		return readConfigPath(configPath, "from commandline", Client.LoadConfig, &LoadedClientConfigPath)
	}

	configPath = os.Getenv("BITMAELUM_CLIENT_CONFIG")
	if configPath != "" {
		return readConfigPath(configPath, "from BITMAELUM_CLIENT_CONFIG environment", Client.LoadConfig, &LoadedClientConfigPath)
	}

	// try on our search paths
	for _, p := range getSearchPaths() {
		p = filepath.Join(p, ClientConfigFile)
		err = readConfigPath(p, "from hardcoded search path", Client.LoadConfig, &LoadedClientConfigPath)
		if err == nil || err != errConfigNotFound {
			return err
		}
	}

	return errClientConfigNotFound
}
// LoadClientConfigOrPass loads client configuration, but return false if not able
LoadClientConfigOrPass loads client configuration, but return false if not able
// LoadClientConfigOrPass loads client configuration but return false if not able
func LoadClientConfigOrPass(configPath string) error {
	var err error
	if configPath != "" {
		return readConfigPath(configPath, "from commandline", Client.LoadConfig, &LoadedClientConfigPath)
	}
	configPath = os.Getenv("BITMAELUM_CLIENT_CONFIG")
	if configPath != "" {
		return readConfigPath(configPath, "from BITMAELUM_CLIENT_CONFIG environment", Client.LoadConfig, &LoadedClientConfigPath)
	}
	for _, p := range getSearchPaths() {
		p = filepath.Join(p, ClientConfigFile)
		err = readConfigPath(p, "from hardcoded search path", Client.LoadConfig, &LoadedClientConfigPath)
		if err == nil || err != errConfigNotFound {
			return err
		}
	}
	return errClientConfigNotFound
}
func LoadClientConfigOrPass ( configPath string ) error { var err error if configPath != " " { return readConfigPath ( configPath , " " , Client . LoadConfig , & LoadedClientConfigPath ) } configPath = os . Getenv ( " " ) if configPath != " " { return readConfigPath ( configPath , " " , Client . LoadConfig , & LoadedClientConfigPath ) } for _ , p := range getSearchPaths ( ) { p = filepath . Join ( p , ClientConfigFile ) err = readConfigPath ( p , " " , Client . LoadConfig , & LoadedClientConfigPath ) if err == nil || err != errConfigNotFound { return err } } return errClientConfigNotFound }
LoadClientConfigOrPass loads client configuration, but return false if not able
LoadClientConfigOrPass loads client configuration but return false if not able
// Try custom path first // try on our search paths