contains is a tiny strings.Contains shim so done_test.go doesn't need a strings import just for this.
(haystack, needle string)
| 278 | // contains is a tiny strings.Contains shim so done_test.go doesn't need |
| 279 | // a strings import just for this. |
| 280 | func contains(haystack, needle string) bool { |
| 281 | for i := 0; i+len(needle) <= len(haystack); i++ { |
| 282 | if haystack[i:i+len(needle)] == needle { |
| 283 | return true |
| 284 | } |
| 285 | } |
| 286 | return false |
| 287 | } |
no outgoing calls
no test coverage detected