-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
24 lines (24 loc) · 973 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Package recaptcha defines the functionality for verification of reCaptcha tokens (all versions)
// generated on the client site.
//
// To make this project independent to any web server there is not an executable file/script, but only the library is
// performing the basic evaluation of provided token and result is captured in the Response structure.
//
// User of this library can define endpoints as the project requires. The only one required task is to define one
// environmental variable SECRET_KEY which has to hold the generated secret key value.
//
// Example of basic usage:
// package main
//
// import (
// "fmt"
// "github.com/lukasaron/recaptcha"
// )
//
// func main() {
// token := "--- accept the token from the client side and pass it here --- "
// remoteIP := "--- fill the remote IP or leave empty --- "
// r, err := recaptcha.VerifyToken(token, remoteIP)
// fmt.Printf("Response: %+v\n, error: %v", r, err)
// }
package recaptcha