The writer allows us to write to the browser Create a message and add it to the response that displays in the browser
(writer http.ResponseWriter, msg string)
| 27 | // Create a message and add it to the |
| 28 | // response that displays in the browser |
| 29 | func write(writer http.ResponseWriter, msg string) { |
| 30 | // Perform type conversion to bytes |
| 31 | _, err := writer.Write([]byte(msg)) |
| 32 | errorCheck(err) |
| 33 | } |
| 34 | |
| 35 | // request is the request from the browser |
| 36 | func englishHandler(writer http.ResponseWriter, |
no test coverage detected