Webservice
A Go-based simple web service meant to be the subject of any tutorial or even used the project work.
Prerequisites:
- Go toolchain (install via system package manager or by hand)
Build
- 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
. To yield a static binary (fully
self-contained, no dynamic linking) set CGO_ENABLED=0
. For more details, please refer
to the Makefile.