gconfig.go
func loadPath() (string, error) {
	path := ""
	if len(*cpath) == 0 {
		path = os.Getenv("GC_PATH")
	} else {
		path = *cpath
	}

	//if empty, load default config path
	if len(path) == 0 {
		gp, err := getGoPath()
		if err != nil {
			return "", err
		}
		path = gp + "/config"
	}

	log.Printf("Loading configuration file from path %s\n", path)

	return path, nil
}
func loadPath() (string, error) {
	path := ""
	if len(*cpath) == 0 {
		path = os.Getenv("GC_PATH")
	} else {
		path = *cpath
	}

	//if empty, load default config path
	if len(path) == 0 {
		gp, err := getGoPath()
		if err != nil {
			return "", err
		}
		path = gp + "/config"
	}

	log.Printf("Loading configuration file from path %s\n", path)

	return path, nil
}
func loadPath ( ) ( string , error ) { path := " " if len ( * cpath ) == 0 { path = os . Getenv ( " " ) } else { path = * cpath } //if empty, load default config path if len ( path ) == 0 { gp , err := getGoPath ( ) if err != nil { return " " , err } path = gp + " " } log . Printf ( " \n " , path ) return path , nil }
//Check if location of config or properties file is set in the env variable
//if no path is specified it will use the current directory
Check if location of config or properties file is set in the env variable if no path is specified it will use the current directory