Documentation ¶
Index ¶
- Constants
- type PWBuilder
- func (b *PWBuilder) AddDigit() *PWBuilder
- func (b *PWBuilder) AddLower() *PWBuilder
- func (b *PWBuilder) AddSpSymbol() *PWBuilder
- func (b *PWBuilder) AddUpper() *PWBuilder
- func (b *PWBuilder) DelDigit() *PWBuilder
- func (b *PWBuilder) DelLower() *PWBuilder
- func (b *PWBuilder) DelSpSymbol() *PWBuilder
- func (b *PWBuilder) DelUpper() *PWBuilder
- func (b *PWBuilder) Gen(password string) string
- func (b *PWBuilder) SetCharNum(num int) *PWBuilder
Constants ¶
View Source
const ( //最小字符限制 CHAR_NUM_LOW_LIMIT = 4 CHAR_NUM_HIGH_LIMIT = 64 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PWBuilder ¶
type PWBuilder struct { //@CharNum 字符数目 CharNum int //@Upper true包含大写字母 Upper bool //@Lower true包含小写字母 Lower bool //@SpSymbol true包含特殊符号 SpSymbol bool //@Digit true包含数字 Digit bool }
PWBuilder包含密码要求
func (*PWBuilder) AddSpSymbol ¶
func (*PWBuilder) DelSpSymbol ¶
func (*PWBuilder) SetCharNum ¶
Click to show internal directories.
Click to hide internal directories.