aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/aws/aws-sdk-go/aws/url.go
blob: 6192b2455b630a641213cf31544259e4f9dc0e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// +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()
}