These are chat archives for gin-gonic/gin
Gin is a web framework written in Golang. It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
go run main.go, the error msg is:
# command-line-arguments c.SecureJSON undefined (type *gin.Context has no field or method SecureJSON). Can anyone tell me why? thanks a lot.
govendor fetch firstname.lastname@example.org. if I use v1.2, should I do
go get -u github.com/gin-gonic/gin? thanks a lot.
Govendor is recommended for sticking into a version or commit,
Using just go get, makes your project unstable with the latest changes even if they are marked as a New version. Think of go get as a git clone for latest commit
govendorcommand I ran before. Maybe the doc (readme.md) should mention this somewhere. because I feel strongly that the doc recommends me to use govender and v1.2. Maybe my feeling is not correct because I am not a native English speaker and my English is very bad.
c.String(http.StatusOK, fmt.Printf("'%s' uploaded!", file.Filename))to
c.String(http.StatusBadRequest, fmt.Sprintf("get form err: %s", err.Error()))to get rid of compile error.
visual-studio-codeand I have both go get gin master commit version globally and govendor locally. The testing project is using govendor version. The most confusing part is that when I type
visual-studio-code, it (the popup window) does show me I have
c.SecureJSONmethod. I spent about an hour to figure out why the method does exist (shown in visual-studio-code and godoc) and gave me undefined error message. visual-studio-code is very bad and misleading me.
/vendor/*, and later at
go get -u ..., you already had
v1.2copy at your vendor folder
$ find vendor ! -path vendor -maxdepth 1 -type d | xargs rm -rf
master commit(go get way) or
v1.2(govendor way) ? which is recommeneded?
govendor? I see gin github mentions switching to
govendor. Is that switcing from
godepwill become a standard in go 1.10 in stackoverflow and go-nuts IRC channel. thanks.