Skip to content

Glossary: Software Design Patterns in Go

net/http

Also written: http.ServeMux, mux, ServeMux

Go's standard-library package for web servers. A mux (`http.NewServeMux`) keeps a registry from request patterns such as `GET /orders` to handlers and calls them when requests arrive.

Where the book teaches it

Related terms

HandlerRegistryMiddlewarehttptest