mirror of https://github.com/docker/cli.git
14 lines
170 B
Go
14 lines
170 B
Go
|
//+build go1.8
|
||
|
|
||
|
package osxkeychain
|
||
|
|
||
|
import "net/url"
|
||
|
|
||
|
func getHostname(u *url.URL) string {
|
||
|
return u.Hostname()
|
||
|
}
|
||
|
|
||
|
func getPort(u *url.URL) string {
|
||
|
return u.Port()
|
||
|
}
|