MCPcopy
hub / github.com/OpenListTeam/OpenList / GetBool

Function GetBool

internal/setting/setting.go:28–30  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

26}
27
28func GetBool(key string) bool {
29 return GetStr(key) == "true" || GetStr(key) == "1"
30}
31
32func GetFloat(key string, defaultVal float64) float64 {
33 f, err := strconv.ParseFloat(GetStr(key), 64)

Callers 15

UpdateFunction · 0.92
HookAndRemoveFunction · 0.92
tryLoginFunction · 0.92
NewMainDriverFunction · 0.92
AuthUserMethod · 0.92
GetConfigMethod · 0.92
PasswordAuthMethod · 0.92
needSignFunction · 0.92
handlePutMethod · 0.92
PutObjectMethod · 0.92
callFSLinkMethod · 0.92
signedFileURLFunction · 0.92

Calls 1

GetStrFunction · 0.70

Tested by

no test coverage detected