namegen
Funny name generator based on docker namesgenerator but with some additions
About
Package namegen is a name generator util for golang that generates funny names like hungry_chaplygin
with cmd command support (see installation section)
Usage
package main
import (
"fmt"
"math/rand"
"time"
"github.com/rb-go/namegen"
)
func main() {
rand.Seed(time.Now().UnixNano())
fmt.Println(namegen.GetName(0))
}
Use binary command
You can install binary namegen
to get names in command line
Example Usage
Example:
namegen -retries=1
or just call namegen
binary to get new name.
if retries
flag is non-zero, a random integer between 0 and 10 will be added to the end of the name, e.g 'focused_turing3'
if golang installed
go install github.com/rb-go/namegen/cmd/namegen@latest
from binary releases
Check releases page to get latest binary for many platforms
Contribute
Pull request are welcome :)
But follow with rules:
left
- must be an adjectiveright
- must be the last name of a famous scientist or person associated with IT. Political figures are not allowed!
Credits
- Based on moby/moby namesgenerator source code