1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-09 04:30:31 +08:00
Files
terasu-cloudflared/vendor/github.com/aws/aws-sdk-go/aws/url.go
2019-08-29 16:54:54 -05:00

13 lines
265 B
Go

// +build go1.8
package aws
import "net/url"
// URLHostname will extract the Hostname without port from the URL value.
//
// Wrapper of net/url#URL.Hostname for backwards Go version compatibility.
func URLHostname(url *url.URL) string {
return url.Hostname()
}