github.com/andrewsun2898/u-root@v6.0.1-0.20200616011413-4b2895c1b815+incompatible/cmds/core/elvish/util/limits.go (about)

     1  package util
     2  
     3  // Limit values for uint and int.
     4  //
     5  // NOTE: The math package contains similar constants for explicitly sized
     6  // integer types, but lack those for uint and int.
     7  const (
     8  	MaxUint = ^uint(0)
     9  	MinUint = 0
    10  	MaxInt  = int(MaxUint >> 1)
    11  	MinInt  = -MaxInt - 1
    12  )