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