MCPcopy Create free account
hub / github.com/goadesign/goa / containsStr

Function containsStr

expr/jsonrpc_validation_test.go:205–215  ·  view source on GitHub ↗
(s, substr string)

Source from the content-addressed store, hash-verified

203}
204
205func containsStr(s, substr string) bool {
206 if len(s) < len(substr) {
207 return false
208 }
209 for i := 0; i <= len(s)-len(substr); i++ {
210 if s[i:i+len(substr)] == substr {
211 return true
212 }
213 }
214 return false
215}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected