func strings.HasSuffix

28 uses

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

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

	crypto/x509
		constraints.go#L584: 		if strings.Contains(host, ":") && !strings.HasSuffix(host, "]") {
		constraints.go#L595: 		if _, err := netip.ParseAddr(host); err == nil || (strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]")) {

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

	github.com/gotd/td/telegram
		invoke.go#L61: 		if rpcErr, ok := tgerr.As(err); ok && strings.HasSuffix(rpcErr.Type, "_MIGRATE") {
		tdlib_json.go#L49: 			if strings.HasSuffix(methodName, "TypeID") ||
		tdlib_json.go#L50: 				strings.HasSuffix(methodName, "Class") {

	github.com/refraction-networking/utls
		handshake_messages.go#L529: 				if strings.HasSuffix(m.serverName, ".") {
		tls.go#L276: 		if len(skippedBlockTypes) == 1 && strings.HasSuffix(skippedBlockTypes[0], "PRIVATE KEY") {
		tls.go#L295: 		if keyDERBlock.Type == "PRIVATE KEY" || strings.HasSuffix(keyDERBlock.Type, " PRIVATE KEY") {
		u_tls_extensions.go#L191: 		if strings.HasSuffix(serverName, ".") {

	golang.org/x/net/proxy
		per_host.go#L77: 		if strings.HasSuffix(host, zone) {

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

	net/http
		client.go#L1041: 	if !strings.HasSuffix(sub, parent) {
		fs.go#L685: 	if strings.HasSuffix(r.URL.Path, indexPage) {
		h2_bundle.go#L7873: 	if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
		server.go#L2393: 			trailing := strings.HasSuffix(url, "/")
		server.go#L2395: 			if trailing && !strings.HasSuffix(url, "/") {
		server.go#L2731: 	if !exactMatch(n, path) && u != nil && !strings.HasSuffix(path, "/") && path != "" {
		server.go#L2806: 	if !strings.HasSuffix(path, "/") {

	net/url
		url.go#L456: 	if strings.HasSuffix(rest, "?") && strings.Count(rest, "?") == 1 {
		url.go#L1207: 	if strings.HasPrefix(host, "[") && strings.HasSuffix(host, "]") {
		url.go#L1256: 	if strings.HasSuffix(elem[len(elem)-1], "/") && !strings.HasSuffix(p, "/") {

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