generate a fun username that is easy to remember
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kami 578aefae62 init 5 months ago
.gitignore init 5 months ago
LICENSE init 5 months ago
README.md init 5 months ago
main.go init 5 months ago
main_test.go init 5 months ago

README.md

go-gen-pkmn

This is a port to Go from kami/js-gen-pkmn

What is a PKMN

Basically a PKMN is a word created from vocals and konsonants in turn starting with a vocal.

Installation

$ go get -u git.varelus.com/kami/go-gen-pkmn

Usage

type GenOpts

type GenOpts struct {
	Number, Length, Unique int
	Quiet bool
}

Quiet will silence the info output when uniquity is too low.

func Gen

func Gen(opts GenOpts) (string, []string)

Example

package main

import(
    "fmt"
    pkmn "vardrop/go-gen-pkmn"
)

func main() {
    p, a := pkmn.Gen(pkmn.GenOpts{
        Number: 2,
    })
    fmt.Printf(p, "%v", a)
}
afigesev [afigesev oyuroqeg]

License

MIT © 2019 Felix Soederhuyzen