MCPcopy Create free account
hub / github.com/tendermint/tendermint / StringSliceEqual

Function StringSliceEqual

libs/strings/string.go:90–100  ·  view source on GitHub ↗

StringSliceEqual checks if string slices a and b are equal

(a, b []string)

Source from the content-addressed store, hash-verified

88
89// StringSliceEqual checks if string slices a and b are equal
90func StringSliceEqual(a, b []string) bool {
91 if len(a) != len(b) {
92 return false
93 }
94 for i := 0; i < len(a); i++ {
95 if a[i] != b[i] {
96 return false
97 }
98 }
99 return true
100}

Callers 1

TestStringSliceEqualFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestStringSliceEqualFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…