(hay, needle []byte)
| 232 | } |
| 233 | |
| 234 | func containsBytes(hay, needle []byte) bool { |
| 235 | for i := 0; i+len(needle) <= len(hay); i++ { |
| 236 | match := true |
| 237 | for j := range needle { |
| 238 | if hay[i+j] != needle[j] { |
| 239 | match = false |
| 240 | break |
| 241 | } |
| 242 | } |
| 243 | if match { |
| 244 | return true |
| 245 | } |
| 246 | } |
| 247 | return false |
| 248 | } |
no outgoing calls
no test coverage detected