Documentation ¶
Index ¶
- func Contains(vs []uint64, v uint64) bool
- func FromString(s string) (uint64, error)
- func Max(v uint64, vs ...uint64) uint64
- func Min(v uint64, vs ...uint64) uint64
- func Pointer(v uint64) *uint64
- func Random() uint64
- func RandomN(n uint64) uint64
- func Sort(vs []uint64) []uint64
- func Uint64(v *uint64) uint64
- func Uint64OrDefault(v *uint64, defaultVal uint64) *uint64
- func Unique(vs []uint64) []uint64
- type Set
- type Uint64Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromString ¶
FromString parses s and returns a uint64.
func Random ¶
func Random() uint64
Random returns a non-negative pseudo-random number of type uint64
func RandomN ¶
RandomN returns a non-negative pseudo-random number in [0,n) of type uint64. It panics if n <= 0.
func Uint64 ¶
Uint64 dereferences and returns uint64. The uint64 default value is returned if v is nil.
func Uint64OrDefault ¶
Uint64OrDefault returns uint64 if it is not nil, and a pointer to defaultVal otherwise.
Types ¶
type Set ¶
type Set map[uint64]struct{}
type Uint64Slice ¶
type Uint64Slice []uint64
func (Uint64Slice) Len ¶
func (p Uint64Slice) Len() int
func (Uint64Slice) Less ¶
func (p Uint64Slice) Less(i, j int) bool
func (Uint64Slice) Swap ¶
func (p Uint64Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.