package
0.0.0-20220523054519-f3605902b6a9
Repository: https://github.com/junbin-yang/golib.git
Documentation: pkg.go.dev

# README

captcha

图形验证码

Demo:

package main

import (
	"github.com/junbin-yang/golib/captcha"
    "time"
)

func main() {
	(&captcha.Options{Expiration: 15 * time.Minute}).New()
    // 生成验证码
	id, b64s, value, err := captcha.GenerateDefaultCaptcha(false)
    ...
    
    // 验证
    if captcha.Verify(id, value) {
    	...    
    }
}

# Functions

No description provided by the author
生成验证码.
No description provided by the author
验证验证码.

# Structs

No description provided by the author