func strings.Index
56 uses
strings (current package)
iter.go#L56: 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#L1165: j += Index(s[start:], old)
strings.go#L1270: func Index(s, substr string) int {
encoding/xml
xml.go#L2058: k := strings.Index(sub, param)
github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4
host.go#L53: if i := strings.Index(hostport, "]:"); i != -1 {
util.go#L24: j = strings.Index(str, doubleSpace)
util.go#L58: if idx := strings.Index(opaque, queryStart); idx >= 0 {
util.go#L63: if strings.Index(opaque, schemeSep) == 0 {
util.go#L68: if idx := strings.Index(opaque, pathSep); idx >= 0 {
github.com/aws/aws-sdk-go-v2/aws/signer/v4
middleware.go#L353: if idx := strings.Index(p, authHeaderSignatureElem); idx >= 0 {
github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4
host.go#L53: if i := strings.Index(hostport, "]:"); i != -1 {
util.go#L24: j = strings.Index(str, doubleSpace)
github.com/aws/aws-sdk-go-v2/service/s3
serializers.go#L3593: if strings.Index(string(v.ObjectAttributes[i]), `,`) != -1 || strings.Index(string(v.ObjectAttributes[i]), `"`) != -1 {
github.com/aws/smithy-go/transport/http
headerlist.go#L100: valueLen = strings.Index(remaining, ",")
github.com/go-pg/pg/v10/orm
model_table_struct.go#L394: ind := strings.Index(s, "__")
query.go#L713: ind := strings.Index(order, " ")
github.com/robfig/cron/v3
parser.go#L97: i := strings.Index(spec, " ")
parser.go#L98: eq := strings.Index(spec, "=")
go/ast
ast.go#L173: colon := strings.Index(c, ":")
go/build
build.go#L2032: i := strings.Index(name, "_")
go/doc
example.go#L693: 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/net/idna
idna10.0.0.go#L735: if strings.Index(s, zwj) == -1 && strings.Index(s, zwnj) == -1 {
golang.org/x/tools/go/packages
golist.go#L171: eqidx := strings.Index(pattern, "=")
golist.go#L934: abspath := strings.TrimSpace(errstr[strings.Index(errstr, noSuchDirectory)+len(noSuchDirectory):])
golist.go#L976: colon := strings.Index(stderrStr, ":")
google.golang.org/grpc
trace.go#L41: if i := strings.Index(m, "/"); i >= 0 {
google.golang.org/grpc/internal/transport
http_util.go#L389: m1 := strings.Index(target, ":")
http_util.go#L390: 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#L2394: if i := strings.Index(url, "?"); i != -1 {
net/url
url.go#L565: if i := strings.Index(authority, "/"); i >= 0 {
url.go#L644: zone := strings.Index(host[:i], "%25")
os/exec
exec.go#L1266: i := strings.Index(kv, "=")
exec.go#L1271: i = strings.Index(kv[1:], "=") + 1
regexp
regexp.go#L405: return strings.Index(i.str[pos:], re.prefix)
regexp/syntax
parse.go#L1603: 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 {