chi/_examples
2020-12-05 14:59:26 -05:00
..
custom-handler Update custom-handler example 2017-07-05 18:26:22 -04:00
custom-method New chi.RegisterMethod(method) to add support for custom HTTP methods (#271) 2017-10-10 17:28:23 -04:00
fileserver examples: update fileserver example with much more flexible impl 2020-04-04 14:53:08 -04:00
graceful Update graceful example using ServerBaseContext 2020-12-05 14:59:26 -05:00
hello-world middleware.Recoverer, stack formatting 2020-03-24 16:10:02 -04:00
limits fixes #347 deprecate http.CloseNotifier 2019-01-09 09:32:43 -05:00
logging update _examples/logging 2020-04-02 08:41:44 -04:00
rest drop unused type (#406) 2019-03-05 03:31:54 -05:00
router-walk fixes #347 deprecate http.CloseNotifier 2019-01-09 09:32:43 -05:00
todos-resource v3.0.0 release 2017-06-21 10:43:59 -04:00
versions fix travis 2018-12-21 08:56:01 -05:00
chi.svg Update chi logo 2020-11-27 19:58:17 -05:00
README.md remove use of go mod in examples, problematic 2019-01-09 10:30:14 -05:00

chi examples

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