Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = base64Captcha.DriverString{ Height: 40, Width: 100, NoiseCount: 2, ShowLineOptions: 2 | 4, Length: 4, Source: "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", BgColor: &color.RGBA{255, 255, 255, 255}, Fonts: []string{"wqy-microhei.ttc"}, }
Functions ¶
func GenerateCaptcha ¶
func GenerateCaptcha() (id, b64s, answer string)
func InitCaptcha ¶
func SaveCaptcha ¶
func SaveCaptcha(imageBase64, path string)
func VarifyCaptcha ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.