func strings.Index
49 uses
strings (current package)
iter.go#L49: i := Index(s, sep)
strings.go#L52: i := Index(s, substr)
strings.go#L63: return Index(s, substr) >= 0
strings.go#L309: m := Index(s, sep)
strings.go#L1156: j := start + Index(s[start:], old)
strings.go#L1265: func Index(s, substr string) int {
encoding/xml
xml.go#L2058: k := strings.Index(sub, param)
github.com/jackc/pgx/v5/internal/sanitize
sanitize.go#L357: idx := strings.Index(l.src[l.pos:], closer)
go/ast
ast.go#L177: colon := strings.Index(c, ":")
directive.go#L70: colon := strings.Index(buf.str, ":")
go/build
build.go#L2005: i := strings.Index(name, "_")
go/doc
example.go#L692: start := strings.Index(name, "[")
go/doc/comment
parse.go#L675: i := strings.Index(line, "]:")
parse.go#L682: j := strings.Index(url, "://")
go/printer
comment.go#L124: colon := strings.Index(c, ":")
go/types
errors.go#L120: if strings.Index(msg, "invalid operand") > 0 || strings.Index(msg, "invalid type") > 0 {
errors.go#L179: if i := strings.Index(msg, "\n"); i >= 0 {
golang.org/x/mod/module
module.go#L320: i := strings.Index(path, "/")
module.go#L450: if i := strings.Index(short, "."); i >= 0 {
module.go#L671: if k := strings.Index(vi, "/"); k >= 0 {
module.go#L674: if k := strings.Index(vj, "/"); k >= 0 {
golang.org/x/net/idna
idna.go#L824: if strings.Index(s, zwj) == -1 && strings.Index(s, zwnj) == -1 {
golang.org/x/text/internal/language/compact
language.go#L123: p := strings.Index(s[1:], "-")
golang.org/x/text/language
language.go#L349: p := strings.Index(s[1:], "-")
golang.org/x/tools/go/packages
golist.go#L993: abspath := strings.TrimSpace(errstr[strings.Index(errstr, noSuchDirectory)+len(noSuchDirectory):])
golist.go#L1035: colon := strings.Index(stderrStr, ":")
google.golang.org/grpc
trace.go#L39: if i := strings.Index(m, "/"); i >= 0 {
google.golang.org/grpc/internal/transport
http_util.go#L609: m1 := strings.Index(target, ":")
http_util.go#L610: m2 := strings.Index(target, ":/")
internal/goroot
gc.go#L110: i := strings.Index(path, "/")
math/big
ratconv.go#L65: if sep := strings.Index(s, "/"); sep >= 0 {
mime
encodedword.go#L232: i := strings.Index(header, "=?")
encodedword.go#L244: start := strings.Index(header, "=?")
encodedword.go#L250: i := strings.Index(header[cur:], "?")
encodedword.go#L268: j := strings.Index(header[cur:], "?=")
net/http
server.go#L2388: if i := strings.Index(url, "?"); i != -1 {
net/url
url.go#L488: if i := strings.Index(authority, "/"); i >= 0 {
url.go#L576: zoneIdx := strings.Index(hostname, "%25")
url.go#L606: } else if i := strings.Index(host, ":"); i != -1 {
os/exec
exec.go#L1274: i := strings.Index(kv, "=")
exec.go#L1279: i = strings.Index(kv[1:], "=") + 1
regexp
regexp.go#L401: return strings.Index(i.str[pos:], re.prefix)
regexp/syntax
parse.go#L1604: i := strings.Index(s[2:], ":]")
text/template/parse
lex.go#L271: if x := strings.Index(l.input[l.pos:], l.leftDelim); x >= 0 {
lex.go#L346: x := strings.Index(l.input[l.pos:], rightComment)
vendor/golang.org/x/net/idna
idna10.0.0.go#L735: if strings.Index(s, zwj) == -1 && strings.Index(s, zwnj) == -1 {