1. Install dependencies

go get -u github.com/go-openapi/errors go get -u github.com/go-openapi/loads go get -u github.com/go-openapi/runtime go get -u github.com/go-openapi/spec go get -u github.com/go-openapi/strfmt go get -u github.com/go-openapi/swag

go get -u golang.org/x/net/context go get -u github.com/go-openapi/errors go get -u github.com/go-openapi/strfmt go get -u github.com/go-openapi/swag go get -u github.com/go-openapi/validate

  1. swagger generate client -f ./swagger/swagger.yaml