()
| 126 | } |
| 127 | |
| 128 | func main() { |
| 129 | // Our app is available at directory |
| 130 | // hello for the localhost port 8080 |
| 131 | // When it receives a request it calls |
| 132 | // the correct Handler |
| 133 | http.HandleFunc("/hello", englishHandler) |
| 134 | http.HandleFunc("/hola", spanishHandler) |
| 135 | http.HandleFunc("/bonjour", frenchHandler) |
| 136 | http.HandleFunc("/interact", interactHandler) |
| 137 | http.HandleFunc("/new", newHandler) |
| 138 | http.HandleFunc("/create", createHandler) |
| 139 | |
| 140 | // Listens for browser requests and responds |
| 141 | // Only receives a value if there is an error |
| 142 | err := http.ListenAndServe("localhost:8080", nil) |
| 143 | log.Fatal(err) |
| 144 | } |
nothing calls this directly
no outgoing calls
no test coverage detected