chi/_examples
dependabot[bot] 04f7f55a7b
build(deps): bump github.com/go-chi/chi/v5 in /_examples/rest (#1228)
Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.0.1 to 5.2.4.
- [Release notes](https://github.com/go-chi/chi/releases)
- [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md)
- [Commits](https://github.com/go-chi/chi/compare/v5.0.1...v5.2.4)

---
updated-dependencies:
- dependency-name: github.com/go-chi/chi/v5
  dependency-version: 5.2.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-18 15:34:12 +02:00
..
custom-handler v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
custom-method v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
fileserver Reformat godoc comments according to the latest Go (#867) 2023-10-19 09:21:23 -04:00
graceful Refactor graceful shutdown example (#994) 2025-09-17 14:30:59 +02:00
hello-world v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
limits Reformat godoc comments according to the latest Go (#867) 2023-10-19 09:21:23 -04:00
logging Update _examples/logging source to point at go-chi/httplog 2023-10-21 15:54:01 -04:00
pathvalue Add pathvalue example to README and implement PathValue handler. (#985) 2025-08-15 17:25:26 +02:00
rest build(deps): bump github.com/go-chi/chi/v5 in /_examples/rest (#1228) 2026-10-18 15:34:12 +02:00
router-walk Use strings.ReplaceAll where applicable (#1046) 2026-02-08 11:48:22 +01:00
todos-resource Reformat godoc comments according to the latest Go (#867) 2023-10-19 09:21:23 -04:00
versions set up go module for _examples/versions (#948) 2024-09-18 17:36:50 +02:00
chi.svg Update chi logo 2020-11-27 19:58:17 -05:00
README.md Add pathvalue example to README and implement PathValue handler. (#985) 2025-08-15 17:25:26 +02:00

chi examples

  • custom-handler - Use a custom handler function signature
  • custom-method - Add a custom HTTP method
  • fileserver - Easily serve static files
  • graceful - Graceful context signaling and server shutdown
  • hello-world - Hello World!
  • limits - Timeouts and Throttling
  • logging - Easy structured logging for any backend
  • rest - REST APIs made easy, productive and maintainable
  • router-walk - Print to stdout a router's routes
  • todos-resource - Struct routers/handlers, an example of another code layout style
  • versions - Demo of chi/render subpkg
  • pathvalue - Demonstrates PathValue usage for retrieving URL parameters

Usage

  1. go get -v -d -u ./... - fetch example deps
  2. cd <example>/ ie. cd rest/
  3. go run *.go - note, example services run on port 3333
  4. Open another terminal and use curl to send some requests to your example service, curl -v http://localhost:3333/
  5. Read /main.go source to learn how service works and read comments for usage