MCPcopy
hub / github.com/mislav/hub / reverseNormalizeHost

Function reverseNormalizeHost

github/client.go:1146–1155  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

1144}
1145
1146func reverseNormalizeHost(host string) string {
1147 switch host {
1148 case "api.github.com":
1149 return GitHubHost
1150 case "api.github.localhost":
1151 return "github.localhost"
1152 default:
1153 return host
1154 }
1155}
1156
1157func checkStatus(expectedStatus int, action string, response *simpleResponse, err error) error {
1158 if err != nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…