Documentation ¶
Index ¶
- func Choose12f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) (T1, T2)
- func Choose13f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) (T1, T3)
- func Choose1f2[T1, T2 any](t1 T1, t2 T2) T1
- func Choose1f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) T1
- func Choose23f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) (T2, T3)
- func Choose2f2[T1, T2 any](t1 T1, t2 T2) T2
- func Choose2f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) T2
- func Choose3f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) T3
- func FileLastModifiedTs(checkFile string) int64
- func If[T any](cmp bool, okVal, elseVal T) T
- func IgnoreErrorP1[T1 any](t1 T1, err error) T1
- func IgnoreErrorP2[T1, T2 any](t1 T1, t2 T2, err error) (T1, T2)
- func Max[T constraints.Ordered](a, b T) T
- func MaxAll[T constraints.Ordered](a T, b ...T) T
- func Min[T constraints.Ordered](a, b T) T
- func MinAll[T constraints.Ordered](a T, b ...T) T
- func Notnull[T any](val *T) T
- func PanicErrorP0(err error)
- func PanicErrorP1[T1 any](t1 T1, err error) T1
- func PanicErrorP2[T1, T2 any](t1 T1, t2 T2, err error) (T1, T2)
- func VarUpdate[T constraints.Ordered](v *T, newValue T) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Choose12f3 ¶
func Choose12f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) (T1, T2)
func Choose13f3 ¶
func Choose13f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) (T1, T3)
func Choose23f3 ¶
func Choose23f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) (T2, T3)
func FileLastModifiedTs ¶
func IgnoreErrorP1 ¶
func IgnoreErrorP2 ¶
func Max ¶
func Max[T constraints.Ordered](a, b T) T
func MaxAll ¶
func MaxAll[T constraints.Ordered](a T, b ...T) T
func Min ¶
func Min[T constraints.Ordered](a, b T) T
func MinAll ¶
func MinAll[T constraints.Ordered](a T, b ...T) T
func PanicErrorP0 ¶
func PanicErrorP0(err error)
func PanicErrorP1 ¶
func PanicErrorP2 ¶
func VarUpdate ¶
func VarUpdate[T constraints.Ordered](v *T, newValue T) bool
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package constraints defines a set of useful constraints to be used with type parameters.
|
Package constraints defines a set of useful constraints to be used with type parameters. |
Click to show internal directories.
Click to hide internal directories.