func strings.TrimSuffix
39 uses
strings (current package)
strings.go#L984: func TrimSuffix(s, suffix string) string {
crypto/x509
verify.go#L905: host = strings.TrimSuffix(host, ".")
verify.go#L956: host = toLowerCaseASCII(strings.TrimSuffix(host, "."))
github.com/golang/protobuf/jsonpb
encode.go#L188: x = strings.TrimSuffix(x, "000")
encode.go#L189: x = strings.TrimSuffix(x, "000")
encode.go#L190: x = strings.TrimSuffix(x, ".000")
encode.go#L204: x = strings.TrimSuffix(x, "000")
encode.go#L205: x = strings.TrimSuffix(x, "000")
encode.go#L206: x = strings.TrimSuffix(x, ".000")
encode.go#L400: name = strings.TrimSuffix(name, ".message_set_extension")
github.com/golang/protobuf/proto
text_encode.go#L521: name = strings.TrimSuffix(name, ".message_set_extension")
github.com/google/go-cmp/cmp
report_reflect.go#L325: lines := strings.Split(strings.TrimSuffix(s, "\n"), "\n")
report_reflect.go#L328: lines[i] = strings.TrimPrefix(strings.TrimSuffix(lines[i], "\r"), "\r") // trim leading/trailing carriage returns for legacy Windows endline support
report_slices.go#L199: line = strings.TrimPrefix(strings.TrimSuffix(line, "\r"), "\r") // trim leading/trailing carriage returns for legacy Windows endline support
github.com/google/go-cmp/cmp/internal/function
func.go#L79: fullName = strings.TrimSuffix(fullName, "-fm")
func.go#L84: fullName = strings.TrimSuffix(fullName, ")")
func.go#L91: fullName = strings.TrimSuffix(fullName, s)
func.go#L96: fullName = strings.TrimSuffix(fullName, ".")
func.go#L98: return strings.TrimSuffix(name, ".")
go.pact.im/x/goupdate
htmlgen.go#L364: return g.writeString(strings.TrimSuffix(s, "\n"))
go.pact.im/x/old/pgtxtar
pgtxtar.go#L37: name := strings.TrimSuffix(path.Base(fpath), path.Ext(fpath))
go.uber.org/goleak/internal/stack
stacks.go#L142: line = strings.TrimSuffix(line, ":\n")
stacks.go#L153: state = strings.TrimSuffix(strings.TrimPrefix(parts[2], "["), "]")
go/printer
printer.go#L564: prefix = strings.TrimSuffix(p, " ")
printer.go#L607: prefix = strings.TrimSuffix(prefix, string(suffix))
golang.org/x/tools/go/packages
golist_overlay.go#L544: re = strings.TrimSuffix(re, `/`+vendorChar+`/\.\.\.`) + `(/vendor|/` + vendorChar + `/\.\.\.)`
golist_overlay.go#L548: re = strings.TrimSuffix(re, `/\.\.\.`) + `(/\.\.\.)?`
golang.org/x/tools/internal/gcimporter
gcimporter.go#L109: noext = strings.TrimSuffix(bp.PkgObj, ".a")
google.golang.org/grpc/internal/transport
http2_client.go#L616: host := strings.TrimSuffix(callHdr.Host, ":443")
google.golang.org/protobuf/encoding/protojson
well_known_types.go#L619: x = strings.TrimSuffix(x, "000")
well_known_types.go#L620: x = strings.TrimSuffix(x, "000")
well_known_types.go#L621: x = strings.TrimSuffix(x, ".000")
well_known_types.go#L801: x = strings.TrimSuffix(x, "000")
well_known_types.go#L802: x = strings.TrimSuffix(x, "000")
well_known_types.go#L803: x = strings.TrimSuffix(x, ".000")
google.golang.org/protobuf/reflect/protoregistry
registry.go#L202: pkgName := strings.TrimSuffix(strings.TrimPrefix(path, "google/protobuf/"), ".proto")
internal/lazyregexp
lazyre.go#L66: var inTest = len(os.Args) > 0 && strings.HasSuffix(strings.TrimSuffix(os.Args[0], ".exe"), ".test")
net/http
fs.go#L638: index := strings.TrimSuffix(name, "/") + indexPage
http.go#L56: return strings.TrimSuffix(host, ":")