Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Brute ¶
Brute returns a channel of all possible combinations of a characterset. charset is the characterset to be used, minLen is the minimum length of combinations and should be greater than 0 it will panic otherwise, maxLen is the maxmimum length of combinations and should be greater than or equal to minLen, otherwise it will panic buffer specifies the buffer size of the returned channel, closer can be called to terminte the generator
Example ¶
characterSer := []rune("AB") minLen := 1 maxLen := 2 b, _ := Brute(characterSer, minLen, maxLen, 4) for combination := range b { fmt.Println(combination) }
Output: A B AA AB BA BB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.