ascii

package
v2.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL