(hostname string)
| 91 | } |
| 92 | |
| 93 | func HostPrefix(hostname string) string { |
| 94 | if strings.EqualFold(hostname, localhost) { |
| 95 | return fmt.Sprintf("http://%s/", hostname) |
| 96 | } |
| 97 | return fmt.Sprintf("https://%s/", hostname) |
| 98 | } |
| 99 | |
| 100 | func CategorizeHost(host string) string { |
| 101 | if host == defaultHostname { |
no outgoing calls
no test coverage detected