Golang

Installing on Linux

$ sudo add-apt-repository ppa:gophers/archive -y
$ sudo apt-get update
$ sudo apt-get install golang-1.10-go -y

Installing Glide (Package Manager)

$ sudo add-apt-repository ppa:masterminds/glide -y
$ sudo apt-get update
$ sudo apt-get install glide -y

Rewriting Request Body

We need to modify the content length if we modify http request body.

req.ContentLength = int64(len(b))
req.Body = ioutil.NopCloser(bytes.NewReader(b))

See this.