Documentation ¶
Overview ¶
Package util provides some basic utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clamp ¶
Clamp returns val if val is within min and max, min if val < min, or max if val > max. This clamps val to the range defined by min and max.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.