Randomizer generates random stuff. To use it, install the package:
$ go get [-u] vvoid.pw/randomizer
Then, import on your code:
package main
import (
"fmt"
"vvoid.pw/randomizer"
)
func main() {
// random strings
// n is the amount of chars for the output
n := 10
fmt.Println(randomizer.GenerateRandomString(n))
// random and cute UUIDs based on /dev/urandom
fmt.Println(randomizer.GenerateUUID())
}
Stephano Zanzin sz@shitty.pizza
Please, refer to the LICENSE file.