Documentation ¶
Index ¶
- func Abs(v int8) int8
- func Contains(vs []int8, v int8) bool
- func FromString(s string) (int8, error)
- func FromStringOrDefault(s string, defaultVal int8) int8
- func Int8OrDefault(v *int8, defaultVal int8) *int8
- func Max(v int8, vs ...int8) int8
- func Min(v int8, vs ...int8) int8
- func Pointer(v int8) *int8
- func Random() int8
- func RandomN(n int8) int8
- func Sort(vs []int8) []int8
- func Unique(vs []int8) []int8
- type Int8Slice
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Abs ¶
Abs returns the absolute value of v. NOTE: this method is deprecated. Use helpy.Abs instead.
func Contains ¶
Contains returns true if vs contains v. NOTE: this function is deprecated. Use slicey.Contains instead.
func FromStringOrDefault ¶ added in v0.1.0
FromStringOrDefault parses s and returns a int8.
func Int8OrDefault ¶
Int8OrDefault returns int8 if it is not nil, and a pointer to defaultVal otherwise. NOTE: this method is deprecated. Use helpy.DerefOrValue instead.
func Max ¶
Max returns the maximum value from v and vs. NOTE: this method is deprecated. Use helpy.Max instead.
func Min ¶
Min returns the minimum value from v and vs. NOTE: this method is deprecated. Use helpy.Min instead.
func Pointer ¶
Pointer returns a pointer to the given int8. NOTE: this method is deprecated. Use helpy.Pointer instead.
Types ¶
type Set ¶
type Set helpy.Set[int8]
NOTE: this type is deprecated. Use helpy.Set instead
func MakeSet ¶
MakeSet returns a lookup map for int8 NOTE: this function is deprecated. Use helpy.MakeSet instead.