doc: some function/vars/const/package level updates (#1558)

* doc: some function/vars/const/package level updates

Various update that stood out while reading godoc.org for CoreDNS.

* Fix some misspellings as well
This commit is contained in:
Miek Gieben
2018-02-23 15:02:05 +00:00
committed by GitHub
parent e3b7beab6a
commit 455040c143
9 changed files with 12 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ func normalizeZone(str string) (zoneAddr, error) {
return zoneAddr{Zone: dns.Fqdn(host), Port: port, Transport: trans, IPNet: ipnet}, nil
}
// SplitProtocolHostPort - split a full formed address like "dns://[::1}:53" into parts
// SplitProtocolHostPort splits a full formed address like "dns://[::1]:53" into parts.
func SplitProtocolHostPort(address string) (protocol string, ip string, port string, err error) {
parts := strings.Split(address, "://")
switch len(parts) {