Prepare for golang environment. Tarsgo requires golang version 1.9. X and above.
Install tars: go get github.com/TarsCloud/TarsGo/tars
To compile the tars protocol and transfer it to the golang tool:
cd $GOPATH/src/github.com/TarsCloud/TarsGo/tars/tools/tars2go && go build .
cp tars2go $GOPATH/bin
Check whether the installation of Tars is successful under the path of GOPATH.