Versions in this module Expand all Collapse all v1 v1.26.29 Jul 31, 2026 v1.26.27 Jul 31, 2026 Changes in this version + func Captchaer(cpt *Captcha) func(http.Handler) http.Handler + func Version() string + type Captcha struct + CachePrefix string + ChallengeNums int + ColorPalette color.Palette + Expiration int64 + FieldCaptchaName string + FieldIdName string + StdHeight int + StdWidth int + Store cache.Cache + SubURL string + URLPrefix string + func NewCaptcha(opts ...Options) *Captcha + func (c *Captcha) CreateCaptcha() (string, error) + func (c *Captcha) CreateHTML() template.HTML + func (c *Captcha) Verify(id string, challenge string) bool + func (c *Captcha) VerifyReq(req *http.Request) bool + type Image struct + func NewImage(digits []byte, width, height int, colorPalette color.Palette) *Image + func (m *Image) WriteTo(w io.Writer) (int64, error) + type Options struct + CachePrefix string + ChallengeNums int + ColorPalette color.Palette + Expiration int64 + FieldCaptchaName string + FieldIdName string + Height int + SubURL string + URLPrefix string + Width int