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.
Felix Soederhuyzen 578aefae62 init 11 months ago
.gitignore init 11 months ago
LICENSE init 11 months ago
README.md init 11 months ago
main.go init 11 months ago
main_test.go init 11 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