_examples/
directory v1.5.5
Go to latest Published: Sep 7, 2023 License:MIT
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Directories¶
| Path | Synopsis |
|---|---|
FileServer =========== This example demonstrates how to serve static files from your filesystem. | FileServer =========== This example demonstrates how to serve static files from your filesystem. |
Limits ====== This example demonstrates the use of Timeout, and Throttle middlewares. | Limits ====== This example demonstrates the use of Timeout, and Throttle middlewares. |
Custom 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. | Custom 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. |
REST ==== This example demonstrates a HTTP REST web service with some fixture data. | REST ==== This example demonstrates a HTTP REST web service with some fixture data. |
Todos 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. | Todos 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. |
Versions ======== This example demonstrates the use of the render subpackage, with a quick concept for how to support multiple api versions. | Versions ======== This example demonstrates the use of the render subpackage, with a quick concept for how to support multiple api versions. |
Click to show internal directories.
Click to hide internal directories.