Webservice
A Go-based simple web service meant to be the subject for any tutorial or maybe even the project work.
Prerequisites:
- Go toolchain (install via system package manager or by hand)
Primary interactions:
- Install dependencies:
go get -t ./...
- Run locally:
go run .
- Execute unit tests:
go test -race -v ./...
- Build artifact:
go build -o ./artifact.bin ./*.go
To build for another platform, set GOOS
and GOARCH
. For more details,
please refer to the Makefile
.