func strings.Split
65 uses
strings (current package)
strings.go#L303: func Split(s, sep string) []string { return genSplit(s, sep, 0, -1) }
crypto/tls
common.go#L1085: labels := strings.Split(name, ".")
crypto/x509
root_unix.go#L58: dirs = strings.Split(d, ":")
verify.go#L911: for i, part := range strings.Split(host, ".") {
verify.go#L962: patternParts := strings.Split(pattern, ".")
verify.go#L963: hostParts := strings.Split(host, ".")
encoding/xml
typeinfo.go#L123: tokens := strings.Split(tag, ",")
typeinfo.go#L199: parents := strings.Split(tag, ">")
github.com/aws/aws-sdk-go-v2/aws/signer/v4
middleware.go#L351: ps := strings.Split(auth, ", ")
github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4
util.go#L54: uri = "/" + strings.Join(strings.Split(u.Opaque, "/")[3:], "/")
github.com/aws/aws-sdk-go-v2/service/internal/s3shared
update_endpoint.go#L61: parts := strings.Split(req.URL.Host, ".")
github.com/aws/aws-sdk-go-v2/service/s3/internal/customizations
update_endpoint.go#L207: parts := strings.Split(req.URL.Host, ".")
github.com/aws/smithy-go/transport/http
host.go#L32: labels := strings.Split(hostname, ".")
github.com/go-pg/pg/v10/orm
model_table_struct.go#L327: path := strings.Split(name, ".")
table.go#L414: for _, uniqueName := range strings.Split(v, ",") {
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#L135: cl := strings.Split(c, "\n")
go/build
build.go#L1640: for _, line := range strings.Split(text, "\n") {
build.go#L1722: chunks := strings.Split(str, "${SRCDIR}")
build.go#L1954: l := strings.Split(name, "_")
go/build/constraint
expr.go#L398: for _, lit := range strings.Split(clause, ",") {
go/printer
printer.go#L663: lines := strings.Split(text, "\n")
golang.org/x/net/http2
server.go#L2219: for _, key := range strings.Split(v, ",") {
server.go#L3160: for _, f := range strings.Split(v, ",") {
golang.org/x/net/idna
idna10.0.0.go#L594: l.slice = strings.Split(l.orig, ".")
golang.org/x/tools/go/packages
golist.go#L678: split := strings.Split(pos, ":")
golist.go#L1121: noSeparator := strings.Join(strings.Split(filepath.ToSlash(k), "/"), "")
golist_overlay.go#L568: elem := strings.Split(x, "/")
golang.org/x/tools/internal/gcimporter
gcimporter.go#L63: exports := strings.Split(string(bytes.TrimSpace(output)), "\n")
golang.org/x/tools/internal/gocommand
vendor.go#L97: lines := strings.Split(stdout.String(), "\n")
google.golang.org/grpc/internal/binarylog
env_config.go#L50: methods := strings.Split(s, ",")
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L876: paths := strings.Split(str, ",")
google.golang.org/protobuf/internal/descfmt
stringer.go#L290: 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#L211: ss := append(strings.Split(prefix, "."), suffix)
legacy_message.go#L199: for _, s := range strings.Split(tag, ",") {
message.go#L179: for _, s := range strings.Split(f.Tag.Get("protobuf"), ",") {
message.go#L207: 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#L135: for _, opt := range strings.Split(envOr("GOWASM", ""), ",") {
exp.go#L89: for _, f := range strings.Split(goexp, ",") {
internal/goroot
gc.go#L68: dirsEntries := strings.Split(string(allDirs), "\n")
mime
type_unix.go#L44: fields := strings.Split(scanner.Text(), ":")
net/http
cookie.go#L67: parts := strings.Split(textproto.TrimString(line), ";")
fs.go#L53: parts := strings.Split(name, string(sep))
fs.go#L881: for _, ra := range strings.Split(s[len(b):], ",") {
h2_bundle.go#L5816: for _, key := range strings.Split(v, ",") {
h2_bundle.go#L6673: for _, f := range strings.Split(v, ",") {
server.go#L1501: for _, f := range strings.Split(v, ",") {
net/http/httputil
reverseproxy.go#L401: for _, sf := range strings.Split(f, ",") {
path/filepath
path_unix.go#L34: return strings.Split(path, string(ListSeparator))
runtime/debug
mod.go#L172: elem := strings.Split(line[len(modLine):], tab)
mod.go#L179: elem := strings.Split(line[len(depLine):], tab)
mod.go#L187: elem := strings.Split(line[len(repLine):], tab)
testing
example.go#L53: lines := strings.Split(output, "\n")
match.go#L85: elem := strings.Split(name, "/")
testing.go#L665: lines := strings.Split(s, "\n")
testing.go#L2042: for _, val := range strings.Split(*cpuListStr, ",") {
text/template/parse
node.go#L397: return &VariableNode{tr: t, NodeType: NodeVariable, Pos: pos, Ident: strings.Split(ident, ".")}
node.go#L502: 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#L216: for _, p := range strings.Split(c.NoProxy, ",") {
vendor/golang.org/x/net/idna
idna10.0.0.go#L594: l.slice = strings.Split(l.orig, ".")