Versions in this module Expand all Collapse all v0 v0.3.2 Mar 9, 2020 v0.3.1 Mar 9, 2020 Changes in this version + type Audio struct + func NewAudio(opts ...AudioOption) *Audio + func (d Audio) Generate() (captchas.Captcha, error) + type AudioOption func(*Audio) + func AudioLangauge(language string) AudioOption + func AudioLength(length int) AudioOption + type Captcha struct + func (c *Captcha) Answer() string + func (c *Captcha) EncodeToString() string + func (c *Captcha) HTMLField(fieldName string) template.HTML + func (c *Captcha) ID() string + func (c *Captcha) IsTagAudio() bool + func (c *Captcha) MediaAttr() template.HTMLAttr + type Chinese struct + func NewChinese(opts ...ChineseOption) *Chinese + func (d Chinese) Generate() (captchas.Captcha, error) + type ChineseOption func(*Chinese) + func ChineseBGColor(color *color.RGBA) ChineseOption + func ChineseFonts(fonts []string) ChineseOption + func ChineseHeight(height int) ChineseOption + func ChineseLength(length int) ChineseOption + func ChineseNoiseCount(count int) ChineseOption + func ChineseSource(source string) ChineseOption + func ChineseWidth(width int) ChineseOption + type Digit struct + func NewDigit(opts ...DigitOption) *Digit + func (d Digit) Generate() (captchas.Captcha, error) + type DigitOption func(*Digit) + func DigitDotCount(count int) DigitOption + func DigitHeight(height int) DigitOption + func DigitLength(length int) DigitOption + func DigitMaxSkew(maxSkew float64) DigitOption + func DigitWidth(width int) DigitOption + type Math struct + func NewMath(opts ...MathOption) *Math + func (d Math) Generate() (captchas.Captcha, error) + type MathOption func(*Math) + func MathBGColor(color *color.RGBA) MathOption + func MathFonts(fonts []string) MathOption + func MathHeight(height int) MathOption + func MathNoiseCount(count int) MathOption + func MathWidth(width int) MathOption + type Str struct + func NewString(opts ...StringOption) *Str + func (d Str) Generate() (captchas.Captcha, error) + type StringOption func(*Str) + func StringBGColor(color *color.RGBA) StringOption + func StringFonts(fonts []string) StringOption + func StringHeight(height int) StringOption + func StringLength(length int) StringOption + func StringNoiseCount(count int) StringOption + func StringSource(source string) StringOption + func StringWidth(width int) StringOption Other modules containing this package github.com/clevergo/captchas