Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AsciiCmd cobra.Command = cobra.Command{ Use: "ascii", Short: "generate random ascii characters", Long: "generate random ascii characters\nconvenient symbols are symbols that are typically less problematic to be handled as passwords. this excludes symbols like `;` and `\"`.", Run: func(cmd *cobra.Command, args []string) { buf := make([]byte, size) var er error switch pool { case allSmallCaseLettersAndNumbers: { for range lines { if er = random_byte_pools.SmallLettersAndNumbersRandomPool.Into(buf); er != nil { panic(er) } fmt.Println(string(buf)) } } case allLettersAndNumbers: { for range lines { if er = random_byte_pools.AllLettersAndNumbersRandomPool.Into(buf); er != nil { panic(er) } fmt.Println(string(buf)) } } case allLettersAndNumbersAndConvenientSymbols: { for range lines { if er = random_byte_pools.AllConvenientCharsRandomPool.Into(buf); er != nil { panic(er) } fmt.Println(string(buf)) } } default: { for range lines { if er = random_byte_pools.AllLettersAndNumbersRandomPool.Into(buf); er != nil { panic(er) } fmt.Println(string(buf)) } } } }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.