File: url_go18.go

package info (click to toggle)
golang-github-docker-docker-credential-helpers 0.6.1-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 336 kB
  • sloc: ansic: 345; makefile: 77; sh: 48
file content (13 lines) | stat: -rw-r--r-- 170 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
//+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()
}