_examples/ directory

Directories

PathSynopsis
_examples/custom-handler
_examples/custom-method
_examples/fileserverFileServer =========== This example demonstrates how to serve static files from your filesystem.
_examples/graceful
_examples/hello-world
_examples/limitsLimits ====== This example demonstrates the use of Timeout, and Throttle middlewares.
_examples/loggingCustom Structured Logger ======================== This example demonstrates how to use middleware.RequestLogger, middleware.LogFormatter and middleware.LogEntry to build a structured logger using the preview version of the new log/slog package as the logging backend.
_examples/router-walk
_examples/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.
_examples/versionsVersions ======== This example demonstrates the use of the render subpackage, with a quick concept for how to support multiple api versions.
_examples/versions/data
_examples/versions/presenter
_examples/versions/presenter/v1
_examples/versions/presenter/v2
_examples/versions/presenter/v3
Version
v5.0.10
Published
Jul 13, 2023
Platform
windows/amd64
Last checked
4 hours ago

Tools for package owners.