mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
002c028f22
vmctl: support of the remote read protocol Signed-off-by: hagen1778 <roman@victoriametrics.com> Co-authored-by: hagen1778 <roman@victoriametrics.com>
13 lines
282 B
Go
13 lines
282 B
Go
//go:build go1.8
|
|
// +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()
|
|
}
|