captcha

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

type Captcha interface {
	Question() (string, error)
	Validate(input string) (bool, error)
}

func NewBannerCaptcha

func NewBannerCaptcha() Captcha
Example
Output:

_                _
| |_   _ _  _  _ | |__ _ __
| ' \ | '_|| || || / /| '_ \
|_||_||_|   \_,_||_\_\| .__/
                      |_|
false
false
true
true
true
false

func NewMathCaptcha

func NewMathCaptcha() Captcha
Example
Output:

1 + 3
false
false
false
true
true

func NewRandomCaptcha

func NewRandomCaptcha() Captcha
Example
Output:

3 + 4
       _    _
 _ __ | |_ | |_  _  _  ___
| '_ \|  _||  _|| || |/ -_)
| .__/ \__| \__| \_,_|\___|
|_|

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL