example

command
Version: v0.0.0-...-0834cef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2019 License: MIT Imports: 6 Imported by: 0

README

Using this Example

This is a simple HTTP server which creates the reCaptcha form and tests the input.

Build the example after installing the recaptcha package:

go get github.com/dpapathanasiou/go-recaptcha
cd $GOPATH/src/github.com/dpapathanasiou/go-recaptcha/example
go build example.go

Run the server* by invoking the executable:

./example <reCaptcha public key (aka Site key)> <reCaptcha private key (aka Secret key)>

You can access the page from http://localhost:9001/ in your browser.

For more information on client side setup and other configuration options, check the official documentation.

* make sure 'localhost' is added to the list of domains allowed for the site registered at reCaptcha.

Documentation

Overview

example.go

A simple HTTP server which presents a reCaptcha input form and evaulates the result, using the github.com/dpapathanasiou/go-recaptcha package.

See the main() function for usage.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL