Skip to content

Glossary: Go Beyond the Basics

middleware

A function that wraps a handler to do work before or after it, such as `logRequests` timing and logging every request.

Where the book teaches it

Related terms

http.Handlerhttp.HandlerFunchandler (HTTP)