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

Function GetStr

internal/setting/setting.go:9–18  ·  view source on GitHub ↗
(key string, defaultValue ...string)

Source from the content-addressed store, hash-verified

7)
8
9func GetStr(key string, defaultValue ...string) string {
10 val, _ := op.GetSettingItemByKey(key)
11 if val == nil {
12 if len(defaultValue) > 0 {
13 return defaultValue[0]
14 }
15 return ""
16 }
17 return val.Value
18}
19
20func GetInt(key string, defaultVal int) int {
21 i, err := strconv.Atoi(GetStr(key))

Callers 15

doLoginMethod · 0.92
initLoginParamMethod · 0.92
doLoginMethod · 0.92
ProgressFunction · 0.92
initFunction · 0.92
IsReadyMethod · 0.92
InitMethod · 0.92
IsReadyMethod · 0.92
AddURLMethod · 0.92
InitMethod · 0.92
IsReadyMethod · 0.92
IsReadyMethod · 0.92

Calls 1

GetSettingItemByKeyFunction · 0.92