chi/_examples
2023-05-02 12:37:05 +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 v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
graceful Spelling and grammar fixes (#820) 2023-05-02 12:37:05 +02:00
hello-world v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
limits v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
logging Don't pass in logFields again (#779) 2023-01-09 06:42:04 -05:00
rest Spelling and grammar fixes (#820) 2023-05-02 12:37:05 +02:00
router-walk v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
todos-resource fix comments and messages for users routes in todos-resource (#631) 2021-06-25 08:49:43 -04:00
versions Fix last set of missing v5 paths (#593) 2021-02-28 12:33:39 -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