Skip to content

kamilbiela/gorecaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy to use, tested reCaptcha library. Allows to check send data against reCaptcha service. There are other libs to do this, but my returns errors n RecaptchaResponse object so You know what went wrong ;).

Usage of lib

Build Status

recaptcha := gorecaptcha.NewRecaptcha("recaptcha private key")

captchaResponse, err := recaptcha.Verify(
	ip,
	challenge_from_request_form,
	response_from_request_form,
)

if err != nil {
	// error (http request error for example)
	fmt.Println(err)
}

fmt.Println(captchaResponse.Status) // true or false
fmt.Println(captchaResponse.Err) // actual reason if false

About

reCaptcha library for golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages