Install Git, node.js, and Go 1.4.2, I suggest using gvm.
Install Yeoman:
npm install -g yo
Install the Go-Microservice generator:
npm install -g generator-go-microservice
In a new directory, generate the service:
yo go-microservice
Get the dependencies:
goop install
Run the service:
goop exec go run server.go
Your service will run at http://localhost:9001.
ab -n 5000 http://localhost:9001/
Complete requests: 5000
Failed requests: 0
Total transferred: 580000 bytes
HTML transferred: 70000 bytes
Requests per second: 4435.47 [#/sec] (mean)
Time per request: 0.225 [ms] (mean)
Time per request: 0.225 [ms] (mean, across all concurrent requests)
Transfer rate: 502.46 [Kbytes/sec] received
Complete requests: 5000
Failed requests: 0
Total transferred: 655000 bytes
HTML transferred: 70000 bytes
Requests per second: 4660.73 [#/sec] (mean)
Time per request: 0.215 [ms] (mean)
Time per request: 0.215 [ms] (mean, across all concurrent requests)
Transfer rate: 596.25 [Kbytes/sec] received
Complete requests: 5000
Failed requests: 0
Total transferred: 655000 bytes
HTML transferred: 70000 bytes
Requests per second: 4935.01 [#/sec] (mean)
Time per request: 0.203 [ms] (mean)
Time per request: 0.203 [ms] (mean, across all concurrent requests)
Transfer rate: 631.33 [Kbytes/sec] received