MCPcopy Index your code
hub / github.com/OpenListTeam/OpenList / GetFloat

Function GetFloat

internal/setting/setting.go:32–38  ·  view source on GitHub ↗
(key string, defaultVal float64)

Source from the content-addressed store, hash-verified

30}
31
32func GetFloat(key string, defaultVal float64) float64 {
33 f, err := strconv.ParseFloat(GetStr(key), 64)
34 if err != nil {
35 return defaultVal
36 }
37 return f
38}

Callers 1

HookAndRemoveFunction · 0.92

Calls 1

GetStrFunction · 0.70

Tested by

no test coverage detected