mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 02:57:52 +08:00
13 lines
271 B
Go
13 lines
271 B
Go
package util
|
|
|
|
// Limit values for uint and int.
|
|
//
|
|
// NOTE: The math package contains similar constants for explicitly sized
|
|
// integer types, but lack those for uint and int.
|
|
const (
|
|
MaxUint = ^uint(0)
|
|
MinUint = 0
|
|
MaxInt = int(MaxUint >> 1)
|
|
MinInt = -MaxInt - 1
|
|
)
|