MCPcopy
hub / github.com/filebrowser/filebrowser / GetString

Method GetString

auth/hook.go:263–269  ·  view source on GitHub ↗

GetString returns the string value or provided default

(k, dv string)

Source from the content-addressed store, hash-verified

261
262// GetString returns the string value or provided default
263func (hf *hookFields) GetString(k, dv string) string {
264 val, ok := hf.Values[k]
265 if ok {
266 return val
267 }
268 return dv
269}
270
271// GetBoolean returns the bool value or provided default
272func (hf *hookFields) GetBoolean(k string, dv bool) bool {

Callers 15

GetUserMethod · 0.80
cmds_ls.goFile · 0.80
getAndParseViewModeFunction · 0.80
getUserDefaultsFunction · 0.80
getAndParseFileModeFunction · 0.80
initViperFunction · 0.80
withViperAndStoreFunction · 0.80
root.goFile · 0.80
getServerSettingsFunction · 0.80
quickSetupFunction · 0.80
getUserIdentifierFunction · 0.80
getAuthMethodFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected