Start using it

  1. Download and install it:
$ go get
  1. Import it in your code:
import ""
  1. (Optional) Import net/http. This is required for example if using constants such as http.StatusOK.
import "net/http"

Use a vendor tool like Govendor

  1. go get govendor
$ go get
  1. Create your project folder and cd inside
$ mkdir -p $GOPATH/src/ && cd "$_"
  1. Vendor init your project and add gin
$ govendor init
$ govendor fetch[email protected]
  1. Copy a starting template inside your project
$ curl > main.go
  1. Run your project
$ go run main.go

results matching ""

    No results matching ""