func strings.LastIndex
15 uses
strings (current package)
strings.go#L81: func LastIndex(s, substr string) int {
crypto/tls
handshake_client.go#L1265: if i := strings.LastIndex(host, "%"); i > 0 {
tls.go#L140: colonPos := strings.LastIndex(addr, ":")
net/http
http.go#L50: func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") }
request.go#L812: i := strings.LastIndex(host, "]")
request.go#L816: j := strings.LastIndex(host[:i], "%")
transport.go#L1971: h = h[:strings.LastIndex(h, ":")]
net/url
url.go#L588: i := strings.LastIndex(authority, "@")
url.go#L628: i := strings.LastIndex(host, "]")
url.go#L659: } else if i := strings.LastIndex(host, ":"); i != -1 {
url.go#L1034: i := strings.LastIndex(base, "/")
vendor/golang.org/x/net/http/httpproxy
proxy.go#L297: func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") }
vendor/golang.org/x/net/idna
punycode.go#L38: pos := 1 + strings.LastIndex(encoded, "-")
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |