tool

package
v0.0.0-...-8f74a13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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 Choose1f2

func Choose1f2[T1, T2 any](t1 T1, t2 T2) T1

func Choose1f3

func Choose1f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) T1

func Choose23f3

func Choose23f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) (T2, T3)

func Choose2f2

func Choose2f2[T1, T2 any](t1 T1, t2 T2) T2

func Choose2f3

func Choose2f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) T2

func Choose3f3

func Choose3f3[T1, T2, T3 any](t1 T1, t2 T2, t3 T3) T3

func FileLastModifiedTs

func FileLastModifiedTs(checkFile string) int64

func If

func If[T any](cmp bool, okVal, elseVal T) T

func IgnoreErrorP1

func IgnoreErrorP1[T1 any](t1 T1, err error) T1

func IgnoreErrorP2

func IgnoreErrorP2[T1, T2 any](t1 T1, t2 T2, err error) (T1, T2)

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 Notnull

func Notnull[T any](val *T) T

func PanicErrorP0

func PanicErrorP0(err error)

func PanicErrorP1

func PanicErrorP1[T1 any](t1 T1, err error) T1

func PanicErrorP2

func PanicErrorP2[T1, T2 any](t1 T1, t2 T2, err error) (T1, T2)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL