Documentation
¶
Index ¶
- Constants
- func MapToSlice(m map[int16]struct{}) []int16
- func Parse(v string) (int16, error)
- func Ptr(v int16) *int16
- func PtrDefToNil(v int16, def int16) *int16
- func PtrZeroToNil(v int16) *int16
- func SafeIndex(s []int16, i int) int16
- func SafeIndexPtr(s []int16, i int) *int16
- func SliceToMap(s []int16) map[int16]struct{}
- func SwapMap(m map[int16]int16) (map[int16]int16, error)
- func Val(v *int16) int16
- func ValDef(v *int16, def int16) int16
- type Slice
Constants ¶
View Source
const (
// BitSize is the size in bits of this type.
BitSize = 16
)
Variables ¶
This section is empty.
Functions ¶
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 SafeIndexPtr ¶
SafeIndexPtr returns "s[i]" if possible, an nil otherwise.
Types ¶
Click to show internal directories.
Click to hide internal directories.