Simple example without external library.
- install golang https://golang.org/doc/install
- clone this repository to $GOPATH (
git clone https://github.com/bw2012/golang-rest-srv-template.git
) - execute:
go build main.go
./main
- use url
http://localhost:8080/restapi/
to test