// EnvFetch fetchs an environment variables. Sets the value to the default value if it does not exist.
EnvFetch fetchs an environment variables. Sets the value to the default value if it does not exist.
// EnvFetch fetchs an environment variables . Sets the value to the default value if it does not exist .
func ConfigFetch(key string, defaultValue ...string) (value string, ok bool) {
	value = viper.GetString(key)
	ok = (value != "")
	if !ok {
		if len(defaultValue) > 0 {
			value = defaultValue[0]
			ok = true
		}
	}
	return value, ok
}
func ConfigFetch ( key string , defaultValue ... string ) ( value string , ok bool ) { value = viper . GetString ( key ) ok = ( value != " " ) if ! ok { if len ( defaultValue ) > 0 { value = defaultValue [ 0 ] ok = true } } return value , ok }
EnvFetch fetchs an environment variables.
EnvFetch fetchs an environment variables .