MCPcopy Index your code
hub / github.com/filebrowser/filebrowser / GetArray

Method GetArray

auth/hook.go:281–287  ·  view source on GitHub ↗

GetArray returns the array value or provided default

(k string, dv []string)

Source from the content-addressed store, hash-verified

279
280// GetArray returns the array value or provided default
281func (hf *hookFields) GetArray(k string, dv []string) []string {
282 val, ok := hf.Values[k]
283 if ok && strings.TrimSpace(val) != "" {
284 return strings.Split(val, " ")
285 }
286 return dv
287}

Callers 1

GetUserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected