Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version for go mod #1465

Closed
dayuoba opened this issue Aug 8, 2018 · 4 comments
Closed

version for go mod #1465

dayuoba opened this issue Aug 8, 2018 · 4 comments

Comments

@dayuoba
Copy link

dayuoba commented Aug 8, 2018

i'm trying go mod on go version 1.11beta3, the simplest code like below

package main
import "github.com/gin-gonic/gin"
func main() {
  r := gin.Default()
  r.GET("/", func(c *gin.Context) {
   //  try c.BindQuery here
  })
  r.Run(":8080")
}

when i run go run . go installs a gin of version 1.14, and then it faild with c.BindQuery undefined.
i've tried to sepcify the version v1.2 go get -u github.com/gin-gonic/gin@v1.2 but also failed with version can not be found.

anyone can give me some suggestions?

@thinkerou
Copy link
Member

duplicated #1388

@dayuoba
Copy link
Author

dayuoba commented Aug 8, 2018

@thinkerou thx for your reply, is there any quick alternative for me to use gin with go mod? if i fork this repo and re-tag it v1.2.0?

@thinkerou
Copy link
Member

thinkerou commented Aug 8, 2018

@dayuoba yes, that will use yourself gin-branch. Or you may use my branch test https://github.com/thinkerou/gin/tree/v1.2.0

@dayuoba
Copy link
Author

dayuoba commented Aug 8, 2018

@thinkerou ok, 谢谢。: )

@dayuoba dayuoba closed this as completed Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants