haisum/recaptcha

Please use Golint

Closed this issue · 2 comments

Well, Golint returns some recommendations, so I suppose I could suggest to use Golint.

$ (cd ~/go/src/github.com/haisum/recaptcha/ && golint)
recaptcha.go:1:1: package comment should be of the form "Package recaptcha ..."
recaptcha.go:26:1: comment on exported type R should be of the form "R ..." (with optional leading article)
recaptcha.go:40:5: var postUrl should be postURL
recaptcha.go:40:13: should omit type string from declaration of var postUrl; it will be inferred from the right-hand side
recaptcha.go:59:9: if block ends with a return statement, so drop this else and outdent its block
recaptcha.go:73:1: comment on exported method R.LastError should be of the form "LastError ..."

Great. Haven't used golint yet. Seems like a nice tool. Will do whatever it suggests. Thanks for pointing out.

Fiixed in 8527d61