MCPcopy Index your code
hub / github.com/Masterminds/sprig / maxf

Function maxf

numeric.go:38–45  ·  view source on GitHub ↗
(a interface{}, i ...interface{})

Source from the content-addressed store, hash-verified

36}
37
38func maxf(a interface{}, i ...interface{}) float64 {
39 aa := toFloat64(a)
40 for _, b := range i {
41 bb := toFloat64(b)
42 aa = math.Max(aa, bb)
43 }
44 return aa
45}
46
47func min(a interface{}, i ...interface{}) int64 {
48 aa := toInt64(a)

Callers

nothing calls this directly

Calls 1

toFloat64Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…