MCPcopy Index your code
hub / github.com/authorizerdev/authorizer / IsStringArrayEqual

Function IsStringArrayEqual

internal/validators/common.go:5–15  ·  view source on GitHub ↗

IsStringArrayEqual validates if string array are equal. This does check if the order is same

(a, b []string)

Source from the content-addressed store, hash-verified

3// IsStringArrayEqual validates if string array are equal.
4// This does check if the order is same
5func IsStringArrayEqual(a, b []string) bool {
6 if len(a) != len(b) {
7 return false
8 }
9 for i, v := range a {
10 if v != b[i] {
11 return false
12 }
13 }
14 return true
15}

Callers 1

UpdateUserMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected