(host string)
| 92 | } |
| 93 | |
| 94 | func getHostname(host string) (hostname string) { |
| 95 | if strings.Index(host, ":") > 0 { |
| 96 | host, _, _ = net.SplitHostPort(host) |
| 97 | } |
| 98 | hostname = strings.ToLower(host) |
| 99 | return |
| 100 | } |
| 101 | |
| 102 | func getDomain(host string) string { |
| 103 | host = getHostname(host) |
no outgoing calls
no test coverage detected
searching dependent graphs…