func bytes.Index

33 uses

	bytes (current package)
		bytes.go#L65: 		i := Index(s, sep)
		bytes.go#L76: 	return Index(b, subslice) != -1
		bytes.go#L173: 		return Index(s, b[:n])
		bytes.go#L356: 		m := Index(s, sep)
		bytes.go#L1015: 			j += Index(s[start:], old)
		bytes.go#L1091: func Index(s, sep []byte) int {

	cloud.google.com/go/errorreporting
		errors.go#L221: 	panicLine := bytes.Index(stack, f)

	encoding/pem
		pem.go#L92: 	} else if i := bytes.Index(data, pemStart); i >= 0 {
		pem.go#L138: 		endIndex = bytes.Index(rest, pemEnd)

	encoding/xml
		xml.go#L2009: 		i := bytes.Index(s, cdataEnd)

	github.com/go-git/go-git/v5/plumbing/protocol/packp
		srvresp.go#L109: 	sp := bytes.Index(line, []byte(" "))

	github.com/google/safehtml/template
		escape.go#L828: 		index := bytes.Index(s.Bytes(), jsTemplateSeparator)
		escape.go#L844: 		templateEnd := bytes.Index(s.Bytes(), jsTemplateSeparator)
		escape.go#L845: 		exprStart := bytes.Index(s.Bytes(), jsTemplateExprStart)
		escape.go#L866: 		exprEnd := bytes.Index(s.Bytes(), jsTemplateExprEnd)
		escape.go#L871: 		nestedTemplateStart := bytes.Index(s.Bytes(), jsTemplateSeparator)
		transition.go#L191: 	if i := bytes.Index(s, commentEnd); i != -1 {
		transition.go#L219: 		i := bytes.Index(s, specialTagEndPrefix)

	github.com/prometheus/procfs
		proc_stat.go#L125: 		l = bytes.Index(data, []byte("("))

	go/build
		build.go#L1237: 		i := bytes.Index(data, newline)
		build.go#L1244: 		i := bytes.Index(data, starSlash)
		build.go#L1282: 				i := bytes.Index(data, newline)
		build.go#L1291: 				i := bytes.Index(data, starSlash)
		build.go#L1595: 				if i := bytes.Index(line, starSlash); i >= 0 {

	golang.org/x/crypto/openpgp/armor
		armor.go#L209: 		i := bytes.Index(line, []byte(": "))

	golang.org/x/mod/modfile
		read.go#L931: 		if i := bytes.Index(line, slashSlash); i >= 0 {

	golang.org/x/tools/txtar
		archive.go#L106: 		j := bytes.Index(data[i:], newlineMarker)

	html/template
		transition.go#L190: 	if i := bytes.Index(s, commentEnd); i != -1 {
		transition.go#L227: 		i := bytes.Index(s, specialTagEndPrefix)
		transition.go#L355: 	i := bytes.Index(s, blockCommentEnd)

	mime/multipart
		multipart.go#L229: 	if i := bytes.Index(buf, nlDashBoundary); i >= 0 {

	net/http/httputil
		dump.go#L163: 		if i := bytes.Index(dump, []byte("\r\n\r\n")); i >= 0 {

	regexp
		regexp.go#L450: 	return bytes.Index(i.str[pos:], re.prefixBytes)