func strings.Count
47 uses
strings (current package)
replace.go#L506: if c := Count(s, x); c != 0 {
strings.go#L41: func Count(s, substr string) int {
strings.go#L244: n = Count(s, sep) + 1
strings.go#L930: if m := Count(s, old); m == 0 {
cloud.google.com/go/cloudtasks/apiv2
doc.go#L107: } else if strings.Count(s, ".") < 2 {
cloud.google.com/go/container/apiv1
doc.go#L108: } else if strings.Count(s, ".") < 2 {
cloud.google.com/go/errorreporting/apiv1beta1
doc.go#L111: } else if strings.Count(s, ".") < 2 {
cloud.google.com/go/internal/version
version.go#L58: } else if strings.Count(s, ".") < 2 {
cloud.google.com/go/logging/apiv2
doc.go#L95: } else if strings.Count(s, ".") < 2 {
cloud.google.com/go/monitoring/apiv3
doc.go#L105: } else if strings.Count(s, ".") < 2 {
cloud.google.com/go/secretmanager/apiv1
doc.go#L108: } else if strings.Count(s, ".") < 2 {
cloud.google.com/go/trace/apiv2
doc.go#L112: } else if strings.Count(s, ".") < 2 {
github.com/evanw/esbuild/internal/fs
filepath.go#L623: seps := strings.Count(base[b0:bl], string(fp.pathSeparator))
fs_mock.go#L131: commonParent := strings.Repeat("../", strings.Count(base, "/")+1)
github.com/go-git/go-git/v5
common.go#L16: nEOL := strings.Count(s, "\n")
github.com/go-git/go-git/v5/config
refspec.go#L34: if strings.Count(spec, refSpecSeparator) != 1 {
refspec.go#L43: ws := strings.Count(spec[0:sep], refSpecWildcard)
refspec.go#L44: wd := strings.Count(spec[sep+1:], refSpecWildcard)
github.com/go-git/go-git/v5/plumbing/object
patch.go#L330: cs.Addition += strings.Count(s, "\n")
patch.go#L335: cs.Deletion += strings.Count(s, "\n")
github.com/google/go-cmp/cmp
report_reflect.go#L304: maxLines := strings.Count(s, "\n") + 1
github.com/prometheus/procfs
mdstat.go#L92: fail := int64(strings.Count(line, "(F)"))
mdstat.go#L93: spare := int64(strings.Count(line, "(S)"))
mdstat.go#L156: total = int64(strings.Count(deviceLine, "["))
go/doc
comment.go#L121: for i := 0; strings.Count(match, open) != strings.Count(match, close) && i < 10; i++ {
golang.org/x/mod/modfile
read.go#L29: if n := strings.Count(s, "\n"); n > 0 {
golang.org/x/mod/module
module.go#L378: if strings.Count(elem, ".") == len(elem) {
module.go#L768: n := strings.Count(glob, "/")
golang.org/x/oauth2
token.go#L107: switch s := strings.TrimSpace(v); strings.Count(s, ".") {
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
idents.go#L280: for strings.Count(altWord[i:], ".")+1 != len(origIDs) {
linkify.go#L324: for i := 0; strings.Count(word, "(") != strings.Count(word, ")") && i < 10; i++ {
linkify.go#L328: for i := 0; strings.Count(word, "[") != strings.Count(word, "]") && i < 10; i++ {
linkify.go#L464: for i := strings.Count(strings.TrimSuffix(lit, "\n"), "\n"); i >= 0; i-- {
golang.org/x/pkgsite/internal/version
version.go#L41: return strings.Count(v, "-") >= 2 && pseudoVersionRE.MatchString(v)
google.golang.org/api/internal/gensupport
version.go#L40: } else if strings.Count(s, ".") < 2 {
mime
encodedword.go#L201: if len(word) < 8 || !strings.HasPrefix(word, "=?") || !strings.HasSuffix(word, "?=") || strings.Count(word, "?") != 4 {
net/http
cookie.go#L244: cookies := make([]*Cookie, 0, len(lines)+strings.Count(lines[0], ";"))
net/url
url.go#L533: if strings.HasSuffix(rest, "?") && strings.Count(rest, "?") == 1 {
path/filepath
path.go#L313: seps := strings.Count(base[b0:bl], string(Separator))
testing
match.go#L78: a := make([]string, 0, strings.Count(s, "/"))
text/template/parse
lex.go#L164: l.line += strings.Count(l.input[l.start:l.pos], "\n")
lex.go#L256: l.line += strings.Count(l.input[l.start:l.pos], "\n")
lex.go#L266: l.line += strings.Count(l.input[l.start:l.pos], "\n")
parse.go#L154: lineNum := 1 + strings.Count(text, "\n")
 |
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. |