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
James Raspass
142fada90f
Use strings.ReplaceAll where applicable ( #1046 )
...
We already use it in the codebase, it's been around since 1.12, and is
considered best practice since it avoids hardcoding a magic number.
2026-02-08 11:48:22 +01:00
mikereid1
563ab11862
Refactor graceful shutdown example ( #994 )
...
Simplify server shutdown by replacing manual signal handling with `signal.NotifyContext`.
2025-09-17 14:30:59 +02:00
Tatsuya Kaneko
80d8da2a18
Add pathvalue example to README and implement PathValue handler. ( #985 )
2025-08-15 17:25:26 +02:00
Hongkuan Wang
2c4d128ffd
set up go module for _examples/versions ( #948 )
2024-09-18 17:36:50 +02:00
Peter Kieltyka
beeb54136a
Update _examples/logging source to point at go-chi/httplog
2023-10-21 15:54:01 -04:00
Oleksandr Redko
992028394f
Reformat godoc comments according to the latest Go ( #867 )
2023-10-19 09:21:23 -04:00
Oleksandr Redko
355dd04bad
Fix typos in comments and variable names ( #849 )
2023-10-18 19:59:47 -04:00
Ville Skyttä
7f28096867
Spelling and grammar fixes ( #820 )
2023-05-02 12:37:05 +02:00
Nicholas Cheng
df664f1712
Don't pass in logFields again ( #779 )
2023-01-09 06:42:04 -05:00
Brady Briggs
528cd32648
Update logging example to use preview version of new log/slog ( #771 )
2022-12-22 07:02:30 -05:00
Peter Kieltyka
98fc81f570
comments
2022-01-03 13:47:20 -05:00
Peter Kieltyka
a63dd1f8a9
_examples: new graceful example, better
2021-07-05 09:13:52 -04:00
Igor Baskakov
a6f8a3eb80
fix comments and messages for users routes in todos-resource ( #631 )
2021-06-25 08:49:43 -04:00
Peter Kieltyka
ab14a9ac6e
rest example, update comment
2021-03-25 08:43:46 -04:00
Peter Kieltyka
a846defca2
examples: add go.mod for rest example ( #605 )
2021-03-25 08:39:20 -04:00
Zik
2d3ff237c6
Fix last set of missing v5 paths ( #593 )
2021-02-28 12:33:39 -05:00
Peter Kieltyka
fe3708ee6c
v5.0.0 ( #591 )
2021-02-27 19:11:55 -05:00
Peter Kieltyka
b58e609d0a
Update graceful example using ServerBaseContext
2020-12-05 14:59:26 -05:00
Peter Kieltyka
3b1ab84c7d
Update chi logo
2020-11-27 19:58:17 -05:00
Peter Kieltyka
f36dec5699
Update chi logo
2020-11-27 19:55:16 -05:00
Peter Kieltyka
014d4cc44c
examples: update fileserver example with much more flexible impl
2020-04-04 14:53:08 -04:00
Peter Kieltyka
a0d61e3faf
update _examples/logging
2020-04-02 08:41:44 -04:00
Peter Kieltyka
d54e3e9912
middleware.Recoverer, stack formatting
2020-03-24 16:10:02 -04:00
Dominik Schmidt
e363f436e0
Make fileserver example a little more elaborate.
...
While it's trivial to remove the basePath from the code, it wasn't quite obvious to me which paths I had to strip where to make the fileserver work if not mounted to /.
2020-01-08 21:17:15 -05:00
Vladimir Bauer
a86787d732
drop unused type ( #406 )
2019-03-05 03:31:54 -05:00
Peter Kieltyka
694f89b77d
remove use of go mod in examples, problematic
2019-01-09 10:30:14 -05:00
Peter Kieltyka
72cec81ea8
update README, and add go.mod to _examples
2019-01-09 10:13:46 -05:00
Peter Kieltyka
c88f06fe64
fixes #347 deprecate http.CloseNotifier
2019-01-09 09:32:43 -05:00
Peter Kieltyka
0ae339de6d
fix travis
2018-12-21 08:56:01 -05:00
Peter Kieltyka
1cbe2fe0bc
Go1.11 travis ( #345 )
...
* add go 1.11.x to travis ci
* fix test vet warnings
* update example formatting with new goimports
2018-08-26 17:07:09 -04:00
Jeff Stiles
0c5e7abb4e
Update rest example to fix #314 , nil pointer dereference ( #328 )
2018-07-10 09:45:11 -04:00
Igor Varavko
e0ba5d4039
Fix 'elasped' misspelling of 'elapsed' ( #273 )
2017-10-20 16:36:20 -04:00
Vladimir Bryksin
8dfd99e5cd
New example ( #272 )
...
* Routes walk example
* Routes walk example
* Fixed Ping description
* Router walk example
2017-10-17 10:38:20 -04:00
Peter Kieltyka
d806569952
New chi.RegisterMethod(method) to add support for custom HTTP methods ( #271 )
2017-10-10 17:28:23 -04:00
Peter Kieltyka
25354a53cc
go vet and golint the project, release 3.1.5
2017-08-02 17:27:05 -04:00
solarhell
4c5a584b32
Fix typo ( #228 )
2017-07-12 08:12:00 -04:00
Peter Kieltyka
49e7138cab
organize routing patterns as endpoints with pattern, handler, paramKeys in the leaf nodes
2017-07-09 19:17:12 -04:00
Peter Kieltyka
316a2378f7
Update custom-handler example
2017-07-05 18:26:22 -04:00
Peter Kieltyka
43bbbc8584
Move docgen and render sub-pkgs to github.com/go-chi/ org
2017-07-04 15:48:41 -04:00
Peter Kieltyka
bba0991923
Update go1.8 graceful example as primary example
2017-06-27 17:00:18 -04:00
Anton Skorokhod
bd791a3008
Graceful example for golang >= 1.8 ( #213 )
2017-06-27 16:56:16 -04:00
Peter Kieltyka
18d990c0d1
Update _examples/fileserver example
2017-06-23 13:43:51 -04:00
Peter Kieltyka
23d479b5b7
Update _examples/rest with regexp example
2017-06-21 14:38:47 -04:00
Peter Kieltyka
7c1f98d442
Update import path in example, thank you @samwierema for the fix
2017-06-21 11:30:49 -04:00
Peter Kieltyka
02e6bbdfd1
v3.0.0 release
2017-06-21 10:43:59 -04:00
Peter Kieltyka
6cbda14c15
Remove FileServer from Mux, and offer as snippet helper code to users to build their own
2017-06-21 10:43:59 -04:00
Peter Kieltyka
26633cbf62
Introduce Method and MethodFunc to Router, supporting string defined http methods, along with example for custom http handler support
2017-06-21 10:43:59 -04:00
Peter Kieltyka
8f717baab4
v3 beta 1
2017-06-21 10:43:59 -04:00
Peter Kieltyka
e6033ea754
Update README, CHANGELOG, other comments
2017-03-30 14:41:17 -04:00