Docs
OverviewRouting

Guides

Running the serverJSON responsesReading params

Go further

Auth middlewareServer-Sent Events

Resources

Source code
ReferenceRouterServerJSON helpersParamsMiddleware and authSSE
Docs/HTTP Server/Reference

Reference

The router, server, JSON helpers, params, middleware, and the SSE package.

Most services need the router, the server, and the JSON helpers. The params, middleware, and SSE pages cover the rest when you reach for them.

RouterNewRouter, the method helpers, Group, Use, With, and the Route table.ServerNewServer, the transport options, and the Start / Stop lifecycle.JSON helpersWriteJSON, WriteError, WriteBadRequest, ReadJSON, and ReadRawJSON.ParamsParam, Wildcard, and RoutePattern.Middleware and authAuthMiddleware, SlogMiddleware, the claims and identity helpers, and Authorizer.SSEThe server/sse package with Hub, Writer, Event, and ServeStream.
Edit or read the source on GitHub
PreviousServer-Sent EventsNext Router

Built with in Vilnius, Lithuania Say hello!

ProductsOpen sourceDocs GitHub