mxschmitt / golang-url-shortener

URL Shortener written in Golang using Bolt DB or Redis. Provides features such as Deletion, Expiration, OAuth and is of course Dockerizable.
https://so.sh0rt.cat
MIT License
283 stars 84 forks source link

getGoDependencies failes #124

Closed b3n4kh closed 6 years ago

b3n4kh commented 6 years ago

Im running "go1.10.3 linux/amd64" on Fedora 28.

I checked out master and 'make' fails at getGoDependencies. Running: go get -v ./... outputs:

github.com/mxschmitt/golang-url-shortener/internal/handlers # github.com/mxschmitt/golang-url-shortener/internal/handlers internal/handlers/auth.go:162:12: c.ShouldBind undefined (type gin.Context has no field or method ShouldBind) internal/handlers/public.go:34:13: c.ShouldBind undefined (type gin.Context has no field or method ShouldBind) internal/handlers/public.go:100:13: c.ShouldBind undefined (type gin.Context has no field or method ShouldBind) internal/handlers/public.go:130:13: c.ShouldBind undefined (type gin.Context has no field or method ShouldBind)

b3n4kh commented 6 years ago

Nevermind I just had to manually update gin go get -u github.com/gin-gonic/gin. I just had some misconceptions about how go get works.

See for details: https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies