Documentation
¶
Index ¶
- type Captcha
- type CharSet
- type Option
- func WithBackground(background color.Color) Option
- func WithCharSet(charSet CharSet) Option
- func WithDistortion(minDistortion, maxDistortion float64) Option
- func WithFont(path string, size float64) Option
- func WithForeground(foreground color.Color) Option
- func WithLength(minLength, maxLength int) Option
- func WithLines(minLines, maxLines int) Option
- func WithNoise(level float64) Option
- func WithRotation(minRotation, maxRotation float64) Option
- func WithScale(minScale, maxScale float64) Option
- func WithSize(width, height int) Option
- func WithSpacing(minSpacing, maxSpacing float64) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharSet ¶
type CharSet = string
const ( Lowercase CharSet = "abcdefghijklmnopqrstuvwxyz" Uppercase CharSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" Alphabetic CharSet = Lowercase + Uppercase Numeric CharSet = "0123456789" Hex CharSet = Numeric + "abcdef" LowerNumeric CharSet = Lowercase + Numeric UpperNumeric CharSet = Uppercase + Numeric AlphaNumeric CharSet = Alphabetic + Numeric AlphaNumericWithoutConfusion CharSet = "ABCDEFGHKLMNPQRSTUVWXYZabcdefghkmnpqsuvwxyz23456789" )
type Option ¶
type Option func(*Captcha)
func WithCharSet ¶
WithCharSet sets the character set used to generate the captcha.
Default: AlphaNumeric
Click to show internal directories.
Click to hide internal directories.
