Documentation ¶
Index ¶
- func Abs(v int16) int16
- func Contains(vs []int16, v int16) bool
- func FromString(s string) (int16, error)
- func Int16(v *int16) int16
- func Int16OrDefault(v *int16, defaultVal int16) *int16
- func Max(v int16, vs ...int16) int16
- func Min(v int16, vs ...int16) int16
- func Pointer(v int16) *int16
- func Random() int16
- func RandomN(n int16) int16
- func Sort(vs []int16) []int16
- func Unique(vs []int16) []int16
- type Int16Slice
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int16OrDefault ¶
Int16OrDefault returns int16 if it is not nil, and a pointer to defaultVal otherwise.
Types ¶
type Int16Slice ¶
type Int16Slice []int16
func (Int16Slice) Len ¶
func (p Int16Slice) Len() int
func (Int16Slice) Less ¶
func (p Int16Slice) Less(i, j int) bool
func (Int16Slice) Swap ¶
func (p Int16Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.