func strings.HasSuffix

76 uses

	strings (current package)
		strings.go#L453: func HasSuffix(s, suffix string) bool {
		strings.go#L985: 	if HasSuffix(s, suffix) {

	crypto/tls
		handshake_messages.go#L419: 				if strings.HasSuffix(m.serverName, ".") {
		tls.go#L267: 		if len(skippedBlockTypes) == 1 && strings.HasSuffix(skippedBlockTypes[0], "PRIVATE KEY") {
		tls.go#L286: 		if keyDERBlock.Type == "PRIVATE KEY" || strings.HasSuffix(keyDERBlock.Type, " PRIVATE KEY") {

	crypto/x509
		verify.go#L422: 	if strings.Contains(host, ":") && !strings.HasSuffix(host, "]") {
		verify.go#L430: 	if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") ||

	encoding/asn1
		common.go#L177: 		if strings.HasSuffix(t.Name(), "SET") {

	github.com/aws/aws-sdk-go-v2/service/internal/s3shared
		resource_request.go#L76: 		strings.HasSuffix(region, "-fips")

	github.com/aws/aws-sdk-go-v2/service/internal/s3shared/arn
		accesspoint_arn.go#L52: 	return strings.HasPrefix(region, "fips-") || strings.HasSuffix(region, "-fips")

	github.com/go-pg/migrations/v8
		collection.go#L204: 		if !strings.HasSuffix(fileName, ".sql") {
		collection.go#L224: 		if strings.HasSuffix(fileName, ".up.sql") {
		collection.go#L228: 			m.UpTx = strings.HasSuffix(fileName, ".tx.up.sql")
		collection.go#L233: 		if strings.HasSuffix(fileName, ".down.sql") {
		collection.go#L237: 			m.DownTx = strings.HasSuffix(fileName, ".tx.down.sql")
		collection.go#L717: 	if !strings.HasSuffix(name, ".go") {

	github.com/go-pg/pg/v10/orm
		query.go#L755: 		strings.HasSuffix(internal.UpperString(q.onConflict.query), "DO UPDATE")
		table.go#L433: 	} else if strings.HasSuffix(field.SQLName, "_id") ||
		table.go#L434: 		strings.HasSuffix(field.SQLName, "_uuid") {
		table.go#L453: 	if strings.HasSuffix(field.SQLType, "[]") {

	github.com/golang/protobuf/jsonpb
		decode.go#L349: 		if !strings.HasPrefix(name, "[") || !strings.HasSuffix(name, "]") {

	github.com/golang/protobuf/proto
		text_decode.go#L423: 		if strings.HasSuffix(v, "f") && v != "-inf" && v != "inf" {
		text_decode.go#L433: 		if strings.HasSuffix(v, "f") && v != "-inf" && v != "inf" {

	github.com/golang/protobuf/ptypes
		any.go#L119: 	if !strings.HasSuffix(any.TypeUrl, name) {

	github.com/google/go-cmp/cmp
		report_reflect.go#L99: 		hasParens := strings.HasPrefix(s2.Prefix, "(") && strings.HasSuffix(s2.Suffix, ")")
		report_reflect.go#L100: 		hasBraces := strings.HasPrefix(s2.Prefix, "{") && strings.HasSuffix(s2.Suffix, "}")
		report_text.go#L414: 		if strings.HasSuffix(name, "ys") {

	github.com/google/go-cmp/cmp/internal/function
		func.go#L83: 		inParen := strings.HasSuffix(fullName, ")")

	go/build
		build.go#L179: 	if !strings.HasSuffix(root, sep) {
		build.go#L584: 			return strings.Contains(sub, "/testdata/") || strings.HasSuffix(sub, "/testdata") || strings.HasPrefix(sub, "testdata/") || sub == "testdata"
		build.go#L895: 		isTest := strings.HasSuffix(name, "_test.go")
		build.go#L897: 		if isTest && strings.HasSuffix(pkg, "_test") && p.Name != pkg {
		build.go#L1235: 		if !ent.IsDir() && strings.HasSuffix(ent.Name(), ".go") {
		build.go#L1428: 	if strings.HasSuffix(name, ".go") {
		build.go#L1430: 		if strings.HasSuffix(name, "_test.go") {

	go/doc
		doc.go#L190: 		case strings.HasSuffix(name, ".go") && !strings.HasSuffix(name, "_test.go"):
		doc.go#L192: 		case strings.HasSuffix(name, "_test.go"):
		example.go#L155: 	if !strings.HasSuffix(file.Name.Name, "_test") {

	go/parser
		interface.go#L148: 		if d.IsDir() || !strings.HasSuffix(d.Name(), ".go") {

	golang.org/x/net/http2
		transport.go#L531: 	if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {

	golang.org/x/tools/go/packages
		golist.go#L1148: 		if strings.HasSuffix(f, ".go") {
		golist_overlay.go#L61: 		iTest := strings.HasSuffix(overlayFiles[i], "_test.go")
		golist_overlay.go#L62: 		jTest := strings.HasSuffix(overlayFiles[j], "_test.go")
		golist_overlay.go#L75: 		isTestFile := strings.HasSuffix(opath, "_test.go")
		golist_overlay.go#L139: 			isXTest := strings.HasSuffix(pkgName, "_test")
		golist_overlay.go#L310: 		if strings.HasSuffix(f, "_test.go") {
		golist_overlay.go#L492: 	maybeXTest := strings.HasPrefix(oldName+"_test", newName) || strings.HasSuffix(newName, "_test")
		golist_overlay.go#L543: 	case strings.HasSuffix(re, `/`+vendorChar+`/\.\.\.`):
		golist_overlay.go#L547: 	case strings.HasSuffix(re, `/\.\.\.`):

	google.golang.org/grpc
		service_config.go#L136: 	if !strings.HasSuffix(*s, "s") {

	google.golang.org/grpc/internal/metadata
		metadata.go#L98: 		if strings.HasSuffix(k, "-bin") {

	google.golang.org/grpc/internal/transport
		http_util.go#L143: 	if strings.HasSuffix(k, binHdrSuffix) {
		http_util.go#L150: 	if strings.HasSuffix(k, binHdrSuffix) {

	google.golang.org/protobuf/encoding/protojson
		decode.go#L163: 		if strings.HasPrefix(name, "[") && strings.HasSuffix(name, "]") {

	google.golang.org/protobuf/types/known/anypb
		any.pb.go#L332: 	if !strings.HasSuffix(url, name) {

	gotest.tools/v3/internal/format
		diff.go#L159: 	if !strings.HasSuffix(lines[len(lines)-1], "\n") {

	internal/lazyregexp
		lazyre.go#L66: var inTest = len(os.Args) > 0 && strings.HasSuffix(strings.TrimSuffix(os.Args[0], ".exe"), ".test")

	mellium.im/sasl
		negotiator.go#L51: 		if lname == rname && strings.HasSuffix(lname, "-PLUS") {
		negotiator.go#L77: 		if lname == rname && strings.HasSuffix(lname, "-PLUS") {
		scram.go#L41: 	case tlsState == nil || !strings.HasSuffix(name, "-PLUS"):
		scram.go#L173: 		switch plus := strings.HasSuffix(name, "-PLUS"); {

	mime
		encodedword.go#L201: 	if len(word) < 8 || !strings.HasPrefix(word, "=?") || !strings.HasSuffix(word, "?=") || strings.Count(word, "?") != 4 {

	net/http
		client.go#L1021: 	if !strings.HasSuffix(sub, parent) {
		fs.go#L592: 	if strings.HasSuffix(r.URL.Path, indexPage) {
		h2_bundle.go#L7192: 	if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
		server.go#L2170: 			trailing := strings.HasSuffix(url, "/")
		server.go#L2172: 			if trailing && !strings.HasSuffix(url, "/") {

	net/http/httputil
		reverseproxy.go#L105: 	aslash := strings.HasSuffix(a, "/")
		reverseproxy.go#L125: 	aslash := strings.HasSuffix(apath, "/")

	net/url
		url.go#L519: 	if strings.HasSuffix(rest, "?") && strings.Count(rest, "?") == 1 {
		url.go#L1156: 	if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {

	testing
		benchmark.go#L52: 	if strings.HasSuffix(s, "x") {
		match.go#L244: 		if !strings.HasSuffix(prefix, "/") {

	text/template/parse
		parse.go#L196: 			if strings.HasSuffix(token.val, " action") {

	vendor/golang.org/x/net/http/httpproxy
		proxy.go#L364: 	if strings.HasSuffix(host, m.host) || (m.matchHost && host == m.host[1:]) {