gconfig.go
func loadProfile() string {
	p := ""
	if len(*profile) == 0 {
		//Load application profile from environment variable
		p = os.Getenv("GC_PROFILE")
	} else {
		p = *profile
	}
	return s.ToLower(p)
}
func loadProfile() string {
	p := ""
	if len(*profile) == 0 {
		//Load application profile from environment variable
		p = os.Getenv("GC_PROFILE")
	} else {
		p = *profile
	}
	return s.ToLower(p)
}
// If no profile is specified then it uses the default profile and load the config
// data that's marked as default.
// Profile can be set using 2 ways:
// 1. Environment variable 'GC_PROFILE' eg: export GC_PROFILE='dev'
// 2. Command line argument 'profile' eg: go run myserver.go -profile=dev