//GetEnvAsString function will fetch the value from environment variable.
//If the value is absent then it will return defaultVal supplied.
GetEnvAsString function will fetch the value from environment variable.
If the value is absent then it will return defaultVal supplied.
// GetEnvAsString function will fetch the value from environment variable . // If the value is absent then it will return defaultVal supplied .
func GetEnvAsString(key, defaultVal string) string {
	if value, ok := os.LookupEnv(key); ok {
		return value
	}
	return defaultVal
}
func GetEnvAsString ( key , defaultVal string ) string { if value , ok := os . LookupEnv ( key ) ; ok { return value } return defaultVal }
GetEnvAsString function will fetch the value from environment variable.
GetEnvAsString function will fetch the value from environment variable .