http.ServeMux provides a multiplexer which calls handlers for HTTP requests.
http.ServeMux
Alternatives to the standard library multiplexer include:
Gorilla Mux