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).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.