Всё по доке https://github.com/waiteb3/revel-swagger/tree/master/examples/swaggerapi
Может свогер не нужен и что-то есть по-лучше в экосистеме go?
┌─[user@debian]─[~]
└──╼ go get github.com/revel/cmd/revel
┌─[user@debian]─[~]
└──╼ go get github.com/waiteb3/revel-swagger/examples/swaggerapi/...
# github.com/waiteb3/revel-swagger/examples/swaggerapi/app/controllers
.golang/src/github.com/waiteb3/revel-swagger/examples/swaggerapi/app/controllers/api.go:14:10: c.RenderJson undefined (type App has no field or method RenderJson)
.golang/src/github.com/waiteb3/revel-swagger/examples/swaggerapi/app/controllers/items.go:48:10: c.RenderJson undefined (type Items has no field or method RenderJson)
.golang/src/github.com/waiteb3/revel-swagger/examples/swaggerapi/app/controllers/items.go:54:34: c.Controller.Request.Body undefined (type *revel.Request has no field or method Body)
.golang/src/github.com/waiteb3/revel-swagger/examples/swaggerapi/app/controllers/items.go:61:10: c.RenderJson undefined (type Items has no field or method RenderJson)
.golang/src/github.com/waiteb3/revel-swagger/examples/swaggerapi/app/controllers/items.go:70:10: c.RenderJson undefined (type Items has no field or method RenderJson)
.golang/src/github.com/waiteb3/revel-swagger/examples/swaggerapi/app/controllers/items.go:82:10: c.RenderJson undefined (type Items has no field or method RenderJson)
.golang/src/github.com/waiteb3/revel-swagger/examples/swaggerapi/app/controllers/items.go:92:11: c.RenderJson undefined (type Items has no field or method RenderJson)
┌─[✗]─[user@debian]─[~]
└──╼ go get github.com/go-swagger/go-swagger/spec
package github.com/go-swagger/go-swagger/spec: cannot find package "github.com/go-swagger/go-swagger/spec" in any of:
/usr/local/go/src/github.com/go-swagger/go-swagger/spec (from $GOROOT)
/home/user/.golang/src/github.com/go-swagger/go-swagger/spec (from $GOPATH)