/////////////////////////////////////////////////////////////////////////////
// Convenience function to parse an integer-based environment variable.
//
// envvar(in): Env variable string
// pval(out):  Ptr to an integer to hold the result.
// Return:     true if env var was seen, else false.
/////////////////////////////////////////////////////////////////////////////
Convenience function to parse an integer-based environment variable.

Env variable string
pval(out):  Ptr to an integer to hold the result.
Return:     true if env var was seen, else false.
///////////////////////////////////////////////////////////////////////////// // Convenience function to parse an integer - based environment variable . // // envvar ( in ) : Env variable string // pval ( out ) : Ptr to an integer to hold the result . // Return : true if env var was seen else false . /////////////////////////////////////////////////////////////////////////////
func __env_parse_int(envvar string, pval *int) bool {
	var val string
	if val = os.Getenv(envvar); val != "" {
		ival, err := strconv.ParseUint(val, 0, 64)
		if err != nil {
			logger.Errorf("Invalid %s value '%s'.", envvar, val)
		} else {
			*pval = int(ival)
		}
		return true
	}
	return false
}
func __env_parse_int ( envvar string , pval * int ) bool { var val string if val = os . Getenv ( envvar ) ; val != " " { ival , err := strconv . ParseUint ( val , 0 , 64 ) if err != nil { logger . Errorf ( " " , envvar , val ) } else { * pval = int ( ival ) } return true } return false }
Convenience function to parse an integer-based environment variable.
Convenience function to parse an integer - based environment variable .