pokemon-go-trade / vendor / github.com / go-chi / chi / _examples /
Simon Lindgren authored on 12 Feb 2021
..
custom-handler first commit 3 years ago
custom-method first commit 3 years ago
fileserver first commit 3 years ago
graceful first commit 3 years ago
hello-world first commit 3 years ago
limits first commit 3 years ago
logging first commit 3 years ago
rest first commit 3 years ago
router-walk first commit 3 years ago
todos-resource first commit 3 years ago
versions first commit 3 years ago
README.md first commit 3 years ago
chi.svg first commit 3 years ago
README.md

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