Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "1.0.3"
Version is the current version of the package.
Functions ¶
This section is empty.
Types ¶
type Captcha ¶
type Captcha struct {
// contains filtered or unexported fields
}
Captcha is a captcha generator.
type Config ¶
type Config struct { // Length is the length of captcha text. Length int // BaseChars is the base chars to use. // Default: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" // You can custom number only: "0123456789" BaseChars string // Noise is the number of noise dots. // Default: 1.0 Noise float64 // Witdh is the width of captcha image. // Default: 150px Width int // Height is the height of captcha image. // Default: 50px Height int }
Config is the configuration for captcha.
Click to show internal directories.
Click to hide internal directories.