Documentation ¶
Index ¶
- func GetHumanReadableUpTime(upTime time.Duration) string
- func MaxDuration(x, y time.Duration) time.Duration
- func MaxFloat(floatMap map[string]*big.Float) (*big.Float, []string)
- func MaxInt(intValMap map[string]*big.Int) (*big.Int, []string)
- func MinDuration(x, y time.Duration) time.Duration
- func MinFloat(floatMap map[string]*big.Float) (*big.Float, []string)
- func MinInt(intValMap map[string]*big.Int) (*big.Int, []string)
- func MinMaxNormFloat(floatMap map[string]*big.Float) map[string]*big.Float
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHumanReadableUpTime ¶
transforms the given up time into a human readable string.
func MaxDuration ¶
max duration returns the larger of x or y.
func MaxFloat ¶ added in v0.2.2
scans the map with the corresponding float value, and then returns the maximum float value in the map as well as a list map keys that have the maximum float value.
func MaxInt ¶
scans the map with the corresponding int value, and then returns the maximum int value in the map as well as a list map keys that have the maximum int value.
func MinDuration ¶
min duration returns the smaller of x or y.
func MinFloat ¶
scans the map with the corresponding float value, and then returns the minimum float value in the map as well as a list map keys that have the minimum float value.
Types ¶
This section is empty.