Permalink
Cannot retrieve contributors at this time
12 lines (9 sloc)
265 Bytes
|
// +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() |
|
} |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.