func strings.HasPrefix
365 uses
strings (current package)
replace.go#L246: } else if node.prefix != "" && HasPrefix(s, node.prefix) {
search.go#L73: if HasPrefix(pattern, pattern[i+1:]) {
strings.go#L444: func HasPrefix(s, prefix string) bool {
strings.go#L903: if HasPrefix(s, prefix) {
archive/zip
reader.go#L664: if strings.HasPrefix(p, "/") {
reader.go#L667: for strings.HasPrefix(p, "../") {
cloud.google.com/go/cloudtasks/apiv2
doc.go#L87: if strings.HasPrefix(s, develPrefix) {
doc.go#L99: if strings.HasPrefix(s, "go1") {
cloud.google.com/go/container/apiv1
doc.go#L88: if strings.HasPrefix(s, develPrefix) {
doc.go#L100: if strings.HasPrefix(s, "go1") {
cloud.google.com/go/errorreporting/apiv1beta1
doc.go#L91: if strings.HasPrefix(s, develPrefix) {
doc.go#L103: if strings.HasPrefix(s, "go1") {
cloud.google.com/go/internal/version
version.go#L42: if strings.HasPrefix(s, develPrefix) {
version.go#L50: if strings.HasPrefix(s, "go1") {
cloud.google.com/go/logging/apiv2
doc.go#L75: if strings.HasPrefix(s, develPrefix) {
doc.go#L87: if strings.HasPrefix(s, "go1") {
cloud.google.com/go/monitoring/apiv3
doc.go#L85: if strings.HasPrefix(s, develPrefix) {
doc.go#L97: if strings.HasPrefix(s, "go1") {
cloud.google.com/go/secretmanager/apiv1
doc.go#L88: if strings.HasPrefix(s, develPrefix) {
doc.go#L100: if strings.HasPrefix(s, "go1") {
cloud.google.com/go/storage
post_policy_v4.go#L369: if !strings.HasPrefix(key, "x-goog-meta-") {
reader.go#L216: if !strings.HasPrefix(cr, "bytes ") || !strings.Contains(cr, "/") {
reader.go#L313: if strings.HasPrefix(spec, prefix) {
storage.go#L621: if strings.HasPrefix(strings.ToLower(h), "x-goog-content-sha256") && strings.Contains(h, ":") {
cloud.google.com/go/trace/apiv2
doc.go#L92: if strings.HasPrefix(s, develPrefix) {
doc.go#L104: if strings.HasPrefix(s, "go1") {
contrib.go.opencensus.io/exporter/stackdriver
metrics_batcher.go#L153: if !strings.HasPrefix(err.Error(), "One or more TimeSeries could not be written:") || len(droppedTimeSeriesRangeMatches) == 0 {
stats.go#L624: if strings.HasPrefix(metricType, knownExternalMetric) {
crypto/x509
verify.go#L453: if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") ||
encoding/asn1
common.go#L125: case strings.HasPrefix(part, "default:"):
common.go#L131: case strings.HasPrefix(part, "tag:"):
github.com/andybalholm/cascadia
parser.go#L257: if strings.HasPrefix(p.s[i:], "/*") {
selector.go#L314: return strings.HasPrefix(s, val)
github.com/aws/aws-sdk-go/aws/awsutil
prettify.go#L31: } else if strings.HasPrefix(strtype, "io.") {
github.com/aws/aws-sdk-go/private/protocol
protocol.go#L25: if !strings.HasPrefix(r.HTTPResponse.Proto, "HTTP") {
github.com/evanw/esbuild/internal/bundler
bundler.go#L317: if strings.HasSuffix(args.options.PublicPath, "/") && strings.HasPrefix(relPath, "./") {
linker.go#L789: if !strings.HasPrefix(relPath, "./") && !strings.HasPrefix(relPath, "../") {
linker.go#L2753: for strings.HasPrefix(relDir[dotDotCount*3:], "../") {
github.com/evanw/esbuild/internal/css_parser
css_parser.go#L834: verbatimWhitespace := strings.HasPrefix(keyText, "--")
github.com/evanw/esbuild/internal/fs
filepath.go#L80: return strings.HasPrefix(path, "/")
github.com/evanw/esbuild/internal/js_lexer
js_lexer.go#L971: if lexer.start == 0 && strings.HasPrefix(lexer.source.Contents, "#!") {
js_lexer.go#L1331: if strings.HasPrefix(lexer.source.Contents[lexer.start:], "