Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clamp ¶
Clamp returns a value such that it remain in range [min, max]. NOTE: the clamped range will be determined from a, b inputs.
func GetScaledValueFromIntOrPercent ¶
func GetScaledValueFromIntOrPercent(intOrPercent *intstr.IntOrString, total int, roundUp bool, defaultValue int) int
GetScaledValueFromIntOrPercent returns a scaled value given an int or percent, otherwise returns the default value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.