mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-25 14:30:22 +00:00
8fc7db8d80
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.38.63 to 1.40.34. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.38.63...v1.40.34) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
14 lines
282 B
Go
14 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()
|
|
}
|