(w http.ResponseWriter, _ *http.Request)
| 1407 | } |
| 1408 | |
| 1409 | func (h *CountryCodeHandler) ServeHTTP(w http.ResponseWriter, _ *http.Request) { |
| 1410 | w.WriteHeader(http.StatusOK) |
| 1411 | |
| 1412 | _, err := w.Write([]byte(h.ResponseCountryCode)) |
| 1413 | if err != nil { |
| 1414 | fmt.Println("Error on write") |
| 1415 | } |
| 1416 | } |
| 1417 | |
| 1418 | func apiHandlerInvalid(w http.ResponseWriter, _ *http.Request) { |
| 1419 | fmt.Fprintf(w, "Invalid Response") |
no outgoing calls
no test coverage detected