Basic REST API in Go
# set env vars
go run main.go
curl -H "Content-Type: application/json" -X POST -d '{"title": "Hello world", "text": "intro"}' http://127.0.0.1:3000/posts
curl http://127.0.0.1:3000/version
curl http://127.0.0.1:3000/posts
GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/achanda/gorest/version.Version=`git rev-parse HEAD`" -o gorest .
docker build . -t gorest