func strings.Split
60 uses
strings (current package)
strings.go#L361: func Split(s, sep string) []string { return genSplit(s, sep, 0, -1) }
crypto/tls
common.go#L1263: labels := strings.Split(name, ".")
ech.go#L468: labels := strings.Split(name, ".")
crypto/x509
root_unix.go#L58: dirs = strings.Split(d, ":")
verify.go#L1051: for i, part := range strings.Split(host, ".") {
verify.go#L1102: patternParts := strings.Split(pattern, ".")
verify.go#L1103: hostParts := strings.Split(host, ".")
github.com/google/go-cmp/cmp
report_reflect.go#L325: lines := strings.Split(strings.TrimSuffix(s, "\n"), "\n")
report_slices.go#L140: ssx = strings.Split(sx, "\n")
report_slices.go#L141: ssy = strings.Split(sy, "\n")
github.com/robfig/cron/v3
parser.go#L255: rangeAndStep = strings.Split(expr, "/")
parser.go#L256: lowAndHigh = strings.Split(rangeAndStep[0], "-")
go/ast
ast.go#L133: cl := strings.Split(c, "\n")
ast.go#L1122: for _, line := range strings.Split(comment.Text, "\n") {
go/build
build.go#L1711: for _, line := range strings.Split(text, "\n") {
build.go#L1798: chunks := strings.Split(str, "${SRCDIR}")
build.go#L2038: l := strings.Split(name, "_")
go/build/constraint
expr.go#L411: for _, lit := range strings.Split(clause, ",") {
go/doc/comment
parse.go#L285: lines := unindent(strings.Split(text, "\n"))
go/printer
printer.go#L654: lines := strings.Split(text, "\n")
golang.org/x/net/http2
server.go#L3272: for _, f := range strings.Split(v, ",") {
golang.org/x/net/idna
idna10.0.0.go#L593: l.slice = strings.Split(l.orig, ".")
golang.org/x/net/internal/httpcommon
request.go#L420: for _, key := range strings.Split(v, ",") {
golang.org/x/tools/go/packages
golist.go#L624: split := strings.Split(pos, ":")
golang.org/x/tools/internal/gcimporter
exportdata.go#L407: exports := strings.Split(string(bytes.TrimSpace(output)), "\n")
golang.org/x/tools/internal/gocommand
vendor.go#L97: lines := strings.Split(stdout.String(), "\n")
vendor.go#L148: lines := strings.Split(strings.TrimSuffix(stdout.String(), "\n"), "\n")
google.golang.org/grpc/internal/binarylog
env_config.go#L50: methods := strings.Split(s, ",")
google.golang.org/grpc/internal/transport
server_stream.go#L129: values := strings.Split(s.clientAdvertisedCompressors, ",")
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L867: paths := strings.Split(str, ",")
google.golang.org/protobuf/internal/descfmt
stringer.go#L386: ss = append(ss, r[0]+formatColon(0)+strings.Join(strings.Split(r[1], "\n"), "\n\t"))
google.golang.org/protobuf/internal/impl
legacy_enum.go#L212: ss := append(strings.Split(prefix, "."), suffix)
legacy_message.go#L199: for _, s := range strings.Split(tag, ",") {
message.go#L181: for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") {
message.go#L214: for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") {
gotest.tools/v3/internal/source
version.go#L19: parts := strings.Split(version, ".")
internal/buildcfg
cfg.go#L337: for _, opt := range strings.Split(envOr("GOWASM", ""), ",") {
exp.go#L115: for _, f := range strings.Split(goexp, ",") {
internal/goroot
gc.go#L76: dirsEntries := strings.Split(string(allDirs), "\n")
mime
type_unix.go#L44: fields := strings.Split(scanner.Text(), ":")
net/http
cookie.go#L71: parts := strings.Split(textproto.TrimString(line), ";")
cookie.go#L97: parts := strings.Split(textproto.TrimString(line), ";")
fs.go#L54: parts := strings.Split(name, string(sep))
fs.go#L1017: for _, ra := range strings.Split(s[len(b):], ",") {
h2_bundle.go#L6382: for _, key := range strings.Split(v, ",") {
h2_bundle.go#L7368: for _, f := range strings.Split(v, ",") {
server.go#L1593: for _, f := range strings.Split(v, ",") {
net/http/httputil
reverseproxy.go#L580: for _, sf := range strings.Split(f, ",") {
path/filepath
path_unix.go#L25: return strings.Split(path, string(ListSeparator))
runtime/debug
mod.go#L208: elem := strings.Split(line[len(modLine):], tab)
mod.go#L215: elem := strings.Split(line[len(depLine):], tab)
mod.go#L223: elem := strings.Split(line[len(repLine):], tab)
testing
example.go#L50: lines := strings.Split(output, "\n")
match.go#L97: elem := strings.Split(name, "/")
testing.go#L823: lines := strings.Split(s, "\n")
testing.go#L2508: for _, val := range strings.Split(*cpuListStr, ",") {
text/template/parse
node.go#L400: return &VariableNode{tr: t, NodeType: NodeVariable, Pos: pos, Ident: strings.Split(ident, ".")}
node.go#L505: return &FieldNode{tr: t, NodeType: NodeField, Pos: pos, Ident: strings.Split(ident[1:], ".")} // [1:] to drop leading period
vendor/golang.org/x/net/http/httpproxy
proxy.go#L215: for _, p := range strings.Split(c.NoProxy, ",") {
vendor/golang.org/x/net/idna
idna10.0.0.go#L593: l.slice = strings.Split(l.orig, ".")