chi: github.com/go-chi/chi/_examples

Directories

PathSynopsis
custom-handler
custom-method
fileserverFileServer =========== This example demonstrates how to serve static files from your filesystem.
graceful
hello-world
limitsLimits ====== This example demonstrates the use of Timeout, and Throttle middlewares.
loggingCustom Structured Logger ======================== This example demonstrates how to use middleware.RequestLogger, middleware.LogFormatter and middleware.LogEntry to build a structured logger using the amazing sirupsen/logrus package as the logging backend.
restREST ==== This example demonstrates a HTTP REST web service with some fixture data.
router-walk
todos-resourceTodos Resource ============== This example demonstrates a project structure that defines a subrouter and its handlers on a struct, and mounting them as subrouters to a parent router.
versionsVersions ======== This example demonstrates the use of the render subpackage, with a quick concept for how to support multiple api versions.
versions/data
versions/presenter/v1
versions/presenter/v2
versions/presenter/v3

Updated 2020-04-06. Refresh now. Tools for package owners.