Documentation ¶
Index ¶
- func Abs(v int64) int64
- func Contains(vs []int64, v int64) bool
- func FromString(s string) (int64, error)
- func FromStringOrDefault(s string, defaultVal int64) int64
- func Int64OrDefault(v *int64, defaultVal int64) *int64
- func Max(v int64, vs ...int64) int64
- func Min(v int64, vs ...int64) int64
- func Pointer(v int64) *int64
- func Random() int64
- func RandomN(n int64) int64
- func Sort(vs []int64) []int64
- func Unique(vs []int64) []int64
- type Int64Slice
- 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 int64.
func Int64OrDefault ¶
Int64OrDefault returns int64 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 int64. NOTE: this method is deprecated. Use helpy.Pointer instead.
Types ¶
type Int64Slice ¶
type Int64Slice []int64
func (Int64Slice) Len ¶
func (p Int64Slice) Len() int
func (Int64Slice) Less ¶
func (p Int64Slice) Less(i, j int) bool
func (Int64Slice) Swap ¶
func (p Int64Slice) Swap(i, j int)
type Set ¶
type Set helpy.Set[int64]
NOTE: this type is deprecated. Use helpy.Set instead
func MakeSet ¶
MakeSet returns a lookup map for int64 NOTE: this function is deprecated. Use helpy.MakeSet instead.