This is google golang module for google re-captcha.
go get github.com/kerkerj/recaptcha
Usage example can be found in example/main.go file.
import
import "github.com/kerkerj/recaptcha"setup keys
// Setup siteKey and secretKey
sitekey := "{Your site key here}"
re := recaptcha.R{
Secret: "{Your secret here}",
}verify
// get recaptcha response, and then verify it.
challenge := r.FormValue("g-recaptcha-response")
isValid := re.Verify(challenge)Available on godocs: http://godoc.org/github.com/kerkerj/recaptcha
Google reCAPTCHA guides: https://developers.google.com/recaptcha/intro