Versions in this module Expand all Collapse all v1 v1.12.2 Dec 24, 2020 v1.12.1 Dec 8, 2020 Changes in this version + type Captcha struct + CachePrefix string + ChallengeNums int + Expiration time.Duration + FieldCaptchaName string + FieldIDName string + StdHeight int + StdWidth int + URLPrefix string + func NewCaptcha(urlPrefix string, store cache.Cache) *Captcha + func NewWithFilter(urlPrefix string, store cache.Cache) *Captcha + func (c *Captcha) CreateCaptcha() (string, error) + func (c *Captcha) CreateCaptchaHTML() template.HTML + func (c *Captcha) Handler(ctx *context.Context) + func (c *Captcha) Verify(id string, challenge string) (success bool) + func (c *Captcha) VerifyReq(req *http.Request) bool + type Image struct + func NewImage(digits []byte, width, height int) *Image + func (m *Image) WriteTo(w io.Writer) (int64, error)