func strings.Index
106 uses
strings (current package)
strings.go#L51: i := Index(s, substr)
strings.go#L62: return Index(s, substr) >= 0
strings.go#L135: return Index(s, string(r))
strings.go#L251: m := Index(s, sep)
strings.go#L948: j += Index(s[start:], old)
strings.go#L1024: func Index(s, substr string) int {
cloud.google.com/go/storage
reader.go#L224: dashIndex := strings.Index(cr, "-")
crypto/x509
pem_decrypt.go#L130: idx := strings.Index(dek, ",")
encoding/json
tags.go#L18: if idx := strings.Index(tag, ","); idx != -1 {
tags.go#L34: i := strings.Index(s, ",")
encoding/xml
typeinfo.go#L118: if i := strings.Index(tag, " "); i >= 0 {
xml.go#L1159: i := strings.Index(s, ":")
xml.go#L2037: idx := strings.Index(s, param)
github.com/andybalholm/cascadia
parser.go#L258: end := strings.Index(p.s[i+len("/*"):], "*/")
github.com/aws/aws-sdk-go/aws/request
request.go#L676: if i := strings.Index(hostport, "]:"); i != -1 {
github.com/aws/aws-sdk-go/aws/signer/v4
v4.go#L559: if idx := strings.Index(p, authHeaderSignatureElem); idx >= 0 {
v4.go#L796: j = strings.Index(str, doubleSpace)
github.com/evanw/esbuild/internal/logger
logger.go#L245: index := strings.Index(text, op)
github.com/ghodss/yaml
fields.go#L475: if idx := strings.Index(tag, ","); idx != -1 {
fields.go#L491: i := strings.Index(s, ",")
github.com/go-git/go-git/v5/config
refspec.go#L38: sep := strings.Index(spec, refSpecSeparator)
refspec.go#L78: end := strings.Index(spec, refSpecSeparator)
refspec.go#L103: wildcard := strings.Index(src, refSpecWildcard)
refspec.go#L119: start := strings.Index(spec, refSpecSeparator) + 1
refspec.go#L128: ws := strings.Index(src, refSpecWildcard)
refspec.go#L129: wd := strings.Index(dst, refSpecWildcard)
refspec.go#L137: separator := strings.Index(spec, refSpecSeparator)
github.com/golang-migrate/migrate/v4/internal/url
url.go#L17: i := strings.Index(url, ":")
github.com/google/licensecheck/internal/match
resyntax.go#L282: j := strings.Index(s[i+4:], "**//")
github.com/jmespath/go-jmespath
functions.go#L448: return strings.Index(searchStr, elStr) != -1, nil
github.com/Masterminds/squirrel
expr.go#L50: i := strings.Index(sp, "?")
placeholder.go#L92: p := strings.Index(sql, "?")
squirrel.go#L151: p := strings.Index(sql, placeholder)
github.com/sergi/go-diff/diffmatchpatch
diff.go#L526: found := strings.Index(text2, pattern)
patch.go#L83: for strings.Index(text, pattern) != strings.LastIndex(text, pattern) &&
stringutil.go#L31: return strings.Index(str, pattern)
stringutil.go#L33: ind := strings.Index(str[i:], pattern)
go/ast
ast.go#L172: colon := strings.Index(c, ":")
go/build
build.go#L1636: i := strings.Index(line, ":")
build.go#L1853: if i := strings.Index(name, ","); i >= 0 {
build.go#L1926: if dot := strings.Index(name, "."); dot != -1 {
build.go#L1937: i := strings.Index(name, "_")
read.go#L508: i := strings.Index(args[1:], "`")
go/doc
comment.go#L116: if i := strings.Index(match, close); i >= 0 && i < strings.Index(match, open) {
go/printer
printer.go#L559: if i := strings.Index(prefix, "*"); i >= 0 {
printer.go#L616: i := strings.Index(last, closing) // i >= 0 (closing is always present)
golang.org/x/crypto/ssh
tcpip.go#L54: i := strings.Index(versionStr, openSSHPrefix)
golang.org/x/mod/modfile
rule.go#L448: i := strings.Index(com.Token, "indirect;")
golang.org/x/mod/module
module.go#L287: i := strings.Index(path, "/")
module.go#L400: if i := strings.Index(short, "."); i >= 0 {
module.go#L623: if k := strings.Index(vi, "/"); k >= 0 {
module.go#L626: if k := strings.Index(vj, "/"); k >= 0 {
module.go#L756: if i := strings.Index(globs, ","); i >= 0 {
golang.org/x/mod/zip
zip.go#L585: } else if j := strings.Index(name, "/vendor/"); j >= 0 {
golang.org/x/net/html
foreign.go#L27: j := strings.Index(a.Key, ":")
golang.org/x/net/idna
idna10.0.0.go#L701: if strings.Index(s, zwj) == -1 && strings.Index(s, zwnj) == -1 {
golang.org/x/pkgsite/internal/frontend
badge.go#L33: urlSchemeIdx := strings.Index(path, "://")
search.go#L294: urlSchemeIdx := strings.Index(query, "://")
server.go#L526: if i := strings.Index(url, "://"); i > 0 {
versions.go#L294: if i := strings.Index(rationale, "\n"); i >= 0 {
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
synopsis.go#L63: if strings.Index(fnc, "func") == 0 {
golang.org/x/pkgsite/internal/licenses
licenses.go#L456: } else if i := strings.Index(name, "/vendor/"); i >= 0 {
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:], "-")
google.golang.org/api/internal/gensupport
json.go#L149: i := strings.Index(val, ",")
google.golang.org/api/transport/http/internal/propagation
http.go#L45: slash := strings.Index(h, `/`)
http.go#L59: semicolon := strings.Index(h, `;`)
google.golang.org/grpc
rpc_util.go#L824: m1 := strings.Index(target, ":")
rpc_util.go#L825: m2 := strings.Index(target, ":/")
trace.go#L41: if i := strings.Index(m, "/"); i >= 0 {
gopkg.in/yaml.v2
yaml.go#L331: if tag == "" && strings.Index(string(field.Tag), ":") < 0 {
html/template
js.go#L401: if i := strings.Index(mimeType, ";"); i >= 0 {
internal/goroot
gc.go#L102: i := strings.Index(path, "/")
math/big
ratconv.go#L64: if sep := strings.Index(s, "/"); sep >= 0 {
mime
encodedword.go#L242: i := strings.Index(header, "=?")
encodedword.go#L254: start := strings.Index(header, "=?")
encodedword.go#L260: i := strings.Index(header[cur:], "?")
encodedword.go#L278: j := strings.Index(header[cur:], "?=")
mediatype.go#L141: i := strings.Index(v, ";")
mediatype.go#L177: if idx := strings.Index(key, "*"); idx != -1 {
net/http
cookie.go#L69: j := strings.Index(parts[0], "=")
cookie.go#L93: if j := strings.Index(attr, "="); j >= 0 {
cookie.go#L250: if splitIndex := strings.Index(line, ";"); splitIndex > 0 {
cookie.go#L260: if j := strings.Index(part, "="); j >= 0 {
fs.go#L884: i := strings.Index(ra, "-")
request.go#L794: dot := strings.Index(vers, ".")
request.go#L980: s1 := strings.Index(line, " ")
request.go#L981: s2 := strings.Index(line[s1+1:], " ")
server.go#L2150: if i := strings.Index(url, "?"); i != -1 {
net/url
url.go#L556: colon := strings.Index(rest, ":")
url.go#L557: slash := strings.Index(rest, "/")
url.go#L638: zone := strings.Index(host[:i], "%25")
url.go#L939: if i := strings.Index(key, "="); i >= 0 {
os/exec
exec.go#L751: eq := strings.Index(kv, "=")
exec.go#L778: eq := strings.Index(kv, "=")
os/user
cgo_lookup_unix.go#L121: if i := strings.Index(u.Name, ","); i >= 0 {
regexp
regexp.go#L403: return strings.Index(i.str[pos:], re.prefix)
regexp.go#L925: i := strings.Index(template, "$")
regexp/syntax
parse.go#L827: if i := strings.Index(t, `\E`); i < 0 {
parse.go#L1395: i := strings.Index(s[2:], ":]")
text/template/parse
lex.go#L247: if x := strings.Index(l.input[l.pos:], l.leftDelim); x >= 0 {
lex.go#L317: i := strings.Index(l.input[l.pos:], rightComment)
vendor/golang.org/x/net/idna
idna10.0.0.go#L700: if strings.Index(s, zwj) == -1 && strings.Index(s, zwnj) == -1 {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |