peridot/vendor/github.com/aws/aws-sdk-go/aws/url.go

14 lines
282 B
Go
Raw Normal View History

2022-11-04 02:21:49 +00:00
//go:build go1.8
2022-07-07 20:11:50 +00:00
// +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()
}