https://github.com/rb-go/namegen
Funny name generator based on docker namesgenerator
https://github.com/rb-go/namegen
generator go golang name-generation name-generator naming
Last synced: 3 months ago
JSON representation
Funny name generator based on docker namesgenerator
- Host: GitHub
- URL: https://github.com/rb-go/namegen
- Owner: rb-go
- License: mit
- Created: 2022-06-10T14:41:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T12:02:15.000Z (almost 3 years ago)
- Last Synced: 2025-01-12T12:52:18.316Z (5 months ago)
- Topics: generator, go, golang, name-generation, name-generator, naming
- Language: Go
- Size: 73.2 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# namegen
[](https://pkg.go.dev/github.com/rb-go/namegen)
[](https://github.com/rb-go/namegen/releases)
[](https://github.com/rb-go/namegen)
[](https://goreportcard.com/report/github.com/rb-go/namegen)
[](https://coveralls.io/github/rb-go/namegen)
[](LICENSE)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
```go
package mainimport (
"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](https://github.com/rb-go/namegen/releases) to get latest binary for many platforms
## Contribute
Pull request are welcome :)
But follow with rules:
- `left` - must be an adjective
- `right` - 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