(w http.ResponseWriter, r *http.Request)
| 15 | } |
| 16 | |
| 17 | func Foo(w http.ResponseWriter, r *http.Request) { |
| 18 | response := map[string]string{ |
| 19 | "hello": "foo!", |
| 20 | } |
| 21 | responseBytes, _ := json.Marshal(response) |
| 22 | w.Header().Set("Content-type", "application/json") |
| 23 | w.Write(responseBytes) |
| 24 | } |
| 25 | |
| 26 | func Bar(w http.ResponseWriter, r *http.Request) { |
| 27 | fmt.Fprintln(w, "hello, bar!\n") |
nothing calls this directly
no outgoing calls
no test coverage detected