Closed donnol closed 6 years ago
+1
c.ShouldBindJson
method was added 3 months ago.
I guess your gin repo is old one.
# in $GOPATH/src/github.com/gin-gonic/gin
$ git reset --hard b8b6831
HEAD is now at b8b6831 feat: add multiple service example. (#1119)
$ go get github.com/gencebay/httplive
# github.com/gencebay/httplive/lib
../../gencebay/httplive/lib/controller.go:106:13: c.ShouldBindJSON undefined (type *gin.Context has no field or method ShouldBindJSON)
../../gencebay/httplive/lib/controller.go:122:13: c.ShouldBindJSON undefined (type *gin.Context has no field or method ShouldBindJSON)
You can do this.
go get -u github.com/gencebay/httplive
If you do this command, your gin repo is updated and you can go get httplive. (This command may cause a dependency problem)
+1
It work. Thanks. @aimof
When I go get github.com/gencebay/httplive, it failed with: