Documentation
¶
Index ¶
- Constants
- func MapToSlice(m map[uint64]struct{}) []uint64
- func MustParse(v string) uint64
- func Parse(v string) (uint64, error)
- func Ptr(v uint64) *uint64
- func PtrDefToNil(v uint64, def uint64) *uint64
- func PtrZeroToNil(v uint64) *uint64
- func SafeIndex(s []uint64, i int) uint64
- func SafeIndexDef(s []uint64, i int, def uint64) uint64
- func SafeIndexPtr(s []uint64, i int) *uint64
- func SliceToMap(s []uint64) map[uint64]struct{}
- func Val(v *uint64) uint64
- func ValDef(v *uint64, def uint64) uint64
- type Slice
Constants ¶
View Source
const (
// BitSize is the size in bits of this type.
BitSize = 64
)
Variables ¶
This section is empty.
Functions ¶
func MapToSlice ¶
MapToSlice converts a map to slice.
func PtrDefToNil ¶
PtrDefToNil returns a pointer to the value, or nil if "def".
func PtrZeroToNil ¶
PtrZeroToNil returns a pointer to the value, or nil if 0.
func SafeIndexDef ¶
SafeIndexDef returns "s[i]" if possible, and "def" otherwise.
func SafeIndexPtr ¶
SafeIndexPtr returns "s[i]" if possible, and nil otherwise.
func SliceToMap ¶
SliceToMap converts a slice to map.
Types ¶
Click to show internal directories.
Click to hide internal directories.