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
Peter Kieltyka
7f80c6515c
Update versions example to use latest render subpkg
2017-03-30 14:41:17 -04:00
Peter Kieltyka
2810210403
Add suggestion about using github.com/pkg/errors for error renderers
2017-03-30 14:41:17 -04:00
Peter Kieltyka
af97407682
Rewrite of chi/render pkg, introducing Binder and Renderer interfaces for handling well-defined request/response payloads
2017-03-30 14:41:17 -04:00
Peter Kieltyka
7765b0916f
Remove CloseNotify middleware for go 1.8+, its the default behaviour
2017-01-25 15:47:12 -05:00
Peter Kieltyka
18893e620d
Set log standard flags on default logger middleware
2016-12-15 10:15:07 -05:00
Peter Kieltyka
badf07aee0
Comments, include minimal hello-world example and CloseNotify test
2016-12-09 11:46:22 -05:00
Peter Kieltyka
7c51c558b5
New _examples/logging which implements a StructuredLogger using Sirupsen/logrus as the backend
2016-11-23 20:13:06 -05:00
Peter Kieltyka
2cad94402b
Update graceful example
2016-10-07 15:28:15 -04:00