File: contains.go

package info (click to toggle)
golang-github-segmentio-asm 1.2.0%2Bgit20231107.1cfacc8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 932 kB
  • sloc: asm: 6,093; makefile: 32
file content (7 lines) | stat: -rw-r--r-- 137 bytes parent folder | download
1
2
3
4
5
6
7
package mem

import "bytes"

func containsGeneric(haystack []byte, needle byte) bool {
	return bytes.IndexByte(haystack, needle) != -1
}