mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-10 22:09:30 +00:00
83559144b1
updated kubernetes packages to latest release. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
13 lines
265 B
Go
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()
|
|
}
|