coolname is a Golang port of a Python package by Alexander Lukanin. All hard work of creating and maintaing word lists happens upstream.
See package docs at pkg.go.dev
$ go get github.com/sio/coolname
import "github.com/sio/coolname"
>>> coolname.Slug()
"vegan-outrageous-bumblebee-of-discourse"
nil
>>> coolname.SlugN(2)
"crimson-caracal"
nil
>>> coolname.Generate()
[]string{
"kind",
"romantic",
"markhor",
"of",
"luxury",
}
nil
Several tunable knobs are provided, check the docs and source code to be able to:
- Provide custom word lists
- Create new lists by combining existing ones via plain concatenation or via cartesian product (see config.json, custom JSON inputs are supported!)
- Use custom random number generator
Copyright 2023 Vitaly Potyarkin, Apache-2.0 License
Copyright 2015-2023 Alexander Lukanin and contributors, BSD-2-Clause License