helloGolang Simple Rest API for mock server by golang Initial setting You don't need to do this. This is just to init the project. $ sudo apt install golang-go $ mkdir gotest $ cd gotest $ go mod init gotest/rest-api $ go get -u github.com/gin-gonic/gin Run go Rest API server $ go run .