MCPcopy Create free account
hub / github.com/derekbanas/Go-Tutorial / main

Function main

webapp/webapp.go:128–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128func 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected