https://github.com/zefer/demo-go-http-handlers
https://github.com/zefer/demo-go-http-handlers
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zefer/demo-go-http-handlers
- Owner: zefer
- Created: 2015-04-07T15:04:30.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-07T15:05:24.000Z (about 11 years ago)
- Last Synced: 2025-01-11T11:35:57.592Z (over 1 year ago)
- Language: Go
- Size: 97.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go net/http handler demo
This demonstrates a few simple concepts, useful when using & testing http
handlers. It shows different ways of writing a simple webservice with a single
handler which renders a list of tweets.
The `tweets` package shows how we might fetch and return tweet data, but it
returns fake data for demonstration purposes.
The directories prefixed `1_`, `2_`, etc show a progression of how we might
build up the code to create a working & testable http handler. The aim being to
gradually introduce the key concepts.