MCPcopy
hub / github.com/go-gorm/gorm / Contains

Function Contains

utils/utils.go:113–120  ·  view source on GitHub ↗
(elems []string, elem string)

Source from the content-addressed store, hash-verified

111}
112
113func Contains(elems []string, elem string) bool {
114 for _, e := range elems {
115 if elem == e {
116 return true
117 }
118 }
119 return false
120}
121
122func AssertEqual(x, y interface{}) bool {
123 if reflect.DeepEqual(x, y) {

Callers 4

UpdateFunction · 0.92
DeleteFunction · 0.92
CreateFunction · 0.92
TestContainsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestContainsFunction · 0.68