MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / getFloat

Function getFloat

internal/tui/dashboard.go:246–257  ·  view source on GitHub ↗
(m map[string]any, key string)

Source from the content-addressed store, hash-verified

244}
245
246func getFloat(m map[string]any, key string) float64 {
247 if v, ok := m[key]; ok {
248 switch n := v.(type) {
249 case float64:
250 return n
251 case json.Number:
252 f, _ := n.Float64()
253 return f
254 }
255 }
256 return 0
257}
258
259func getBool(m map[string]any, key string) bool {
260 if v, ok := m[key]; ok {

Callers 2

renderDashboardMethod · 0.85
parseConfigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected