I was coding along the Go HTTP Servers playlist to learn Go, obviously.
Some targets in Makefile rely one air and golangci-lint. Make sure to install them if you intend to use Makefile.
If you want to use my git hooks, copy them into your local .git/hooks.
cp script/githooks/* .git/hooksNote: You will need the cli tools I mentioned above.
The current HTTP endpoints:
/: Return"Welcome!"on happy path/goodbye: Return"Goodbye!"on happy path/hello?name={name}: Return"Hello, {name}!"on happy path/param/{name}: Return"Hello, {name}!"on happy path/header: Provide a key-value pair"name: {name}"will return"Hello, {name}!"on happy path/json: Provide a JSON with one key-value pair"name: {name}"will return"Hello, {name}!"on happy path