Go API
---

### Install Go Glide package manager and Mercurial
* brew install hg glide (or apt-get)
* cd web-languages-benchmark/go
* glide in
* glide install

### Run Go Server
Build binary from source and run server
* go build -o bin/main
* ./bin/main

### Make a test call using cUrl
curl localhost:8080/taxi-position --request PUT -d '{"lat": -19.432608, "long": -99.133208}' -H 'Accept: application/json' -H 'Content-type: application/json'

### Reference
* https://gobyexample.com/multiple-return-values
* https://github.com/smallfish/simpleyaml
* http://labix.org/mgo
* http://webgo.io/
* http://stackoverflow.com/questions/21014073/sending-json-in-post-request-to-web-api-written-in-web-go-framework
Go API
---

### Install Go Glide package manager and Mercurial

#### OSX
* brew install go hg glide
* cd web-languages-benchmark/go
* glide in
* glide install

#### Debian
* sudo apt-get install golang-go
* git clone https://github.com/Masterminds/glide
* cd glide
* make bootstrap
* cd /WORKSPACE/web-languages-benchmark/go
* /PATHTOGLIDE/glide/glide in
* /PATHTOGLIDE/glide/glide install

### Run Go Server (build binary and run server)
* cd /WORKSPACE/web-languages-benchmark/go
* go build -o bin/main
* ./bin/main

### Make a test call using cUrl
curl localhost:8080/taxi-position --request PUT -d '{"lat": -19.432608, "long": -99.133208}' -H 'Accept: application/json' -H 'Content-type: application/json'

### Reference
* https://gobyexample.com/multiple-return-values
* https://github.com/smallfish/simpleyaml
* http://labix.org/mgo
* http://webgo.io/
* http://stackoverflow.com/questions/21014073/sending-json-in-post-request-to-web-api-written-in-web-go-framework
* https://github.com/Masterminds/glide
Add instructions to Debian for GOLang
Add instructions to Debian for GOLang
