mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-25 20:00:06 +01:00
1e46961d68
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/203 Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/38
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()
|
|
}
|