Go-hCaptcha
Simple hCaptcha middleware written in Go, using fasthttp, which is up to 10x faster than net/http.
This package works with any framework, since it only handles the verification.
Inspired by flask-hcaptcha and hcaptcha.
Installation
go get -u github.com/ross714/hcaptcha
Getting Started
First of all, create an account on https://www.hcaptcha.com/, and attach a new site for development.
import "github.com/ross714/hcaptcha"
client := hcaptcha.New("secret_key", "site_key")
res := client.Verify("token") // => Bool
if res {
// Success
} else {
// Failed
}
See the full example in examples directory.
License
This software is licensed under the MIT License.