Versions in this module Expand all Collapse all v0 v0.1.1 Jan 27, 2022 Changes in this version + type Captcha struct + CodeLen int + Dpi int + FontName string + FontPath string + FontSize float64 + H int + W int + func NewCaptcha(w, h, CodeLen int) *Captcha + func (captcha *Captcha) Debug() + func (captcha *Captcha) OutPut() (string, *image.RGBA) + func (captcha *Captcha) RangeRand(min, max int64) int64 + func (captcha *Captcha) SetFontName(FontName string) + func (captcha *Captcha) SetFontPath(FontPath string) + func (captcha *Captcha) SetFontSize(fontSize float64) + func (captcha *Captcha) SetMode(mode int) + type Image []byte + func Generate(w, h, codeLen, mode int, debug bool, opt ...string) (code string, image Image, err error) + func (i Image) ToBase64String() string