Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifySecCodeIgnoreCase ¶
VerifySecCodeIgnoreCase 区分大小写
Types ¶
type SimpleSecCode ¶
type SimpleSecCode struct {
SecCodeLength int //验证码长度
FontSize float64
FontFilePath string
// contains filtered or unexported fields
}
func NewSimpleSecCode ¶
func NewSimpleSecCode() *SimpleSecCode
func (*SimpleSecCode) CreateImgFile ¶
func (s *SimpleSecCode) CreateImgFile(path string) error
CreateImgFile 创建图片文件 ./test.png
func (*SimpleSecCode) GetImgBase64 ¶
func (s *SimpleSecCode) GetImgBase64() (string, error)
GetImgBase64 获取验证码图片 base64
func (*SimpleSecCode) GetSecCodeKey ¶
func (s *SimpleSecCode) GetSecCodeKey() string
GetSecCodeKey 获取验证码key
Click to show internal directories.
Click to hide internal directories.