Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Max ¶
func Max[T constraints.Ordered](a, b T) T
Max returns the larger of the two provided values. It uses generic type T, which must satisfy the ordered constraints (e.g., integers, floats).
func Min ¶
func Min[T constraints.Ordered](a, b T) T
Min returns the smaller of the two provided values. It uses generic type T, which must satisfy the ordered constraints (e.g., integers, floats).
func RandomInt ¶
RandomInt generates a random integer between the provided min and max integers (inclusive of min, exclusive of max).
func RandomTimeout ¶
RandomTimeout generates a random duration between the provided min and max durations.
func RemoveTmpFiles ¶ added in v0.1.8
RemoveTmpFiles will remove all files in the root directory and its sub-directories with a name that has a 'tmp' prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.