MCPcopy
hub / github.com/filebrowser/filebrowser / GetBoolean

Method GetBoolean

auth/hook.go:272–278  ·  view source on GitHub ↗

GetBoolean returns the bool value or provided default

(k string, dv bool)

Source from the content-addressed store, hash-verified

270
271// GetBoolean returns the bool value or provided default
272func (hf *hookFields) GetBoolean(k string, dv bool) bool {
273 val, ok := hf.Values[k]
274 if ok {
275 return val == "true"
276 }
277 return dv
278}
279
280// GetArray returns the array value or provided default
281func (hf *hookFields) GetArray(k string, dv []string) []string {

Callers 1

GetUserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected