//GetEnvAsInt64 function will fetch the value from environment variable and convert that to an integer of 64 bit.
//If the value is absent then it will return defaultVal supplied.
GetEnvAsInt64 function will fetch the value from environment variable and convert that to an integer of 64 bit.
If the value is absent then it will return defaultVal supplied.
// GetEnvAsInt64 function will fetch the value from environment variable and convert that to an integer of 64 bit . // If the value is absent then it will return defaultVal supplied .
func GetEnvAsInt64(key string, defaultVal int64) (int64, error) {
	if value, ok := os.LookupEnv(key); ok {
		return strconv.ParseInt(value, 10, 64)
	}
	return defaultVal, nil
}
func GetEnvAsInt64 ( key string , defaultVal int64 ) ( int64 , error ) { if value , ok := os . LookupEnv ( key ) ; ok { return strconv . ParseInt ( value , 10 , 64 ) } return defaultVal , nil }
GetEnvAsInt64 function will fetch the value from environment variable and convert that to an integer of 64 bit.
GetEnvAsInt64 function will fetch the value from environment variable and convert that to an integer of 64 bit .