Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 24 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T12:02:15.000Z (over 2 years ago)
- Last Synced: 2024-11-13T05:13:50.611Z (3 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
[![Go Reference](https://pkg.go.dev/badge/github.com/rb-go/namegen.svg)](https://pkg.go.dev/github.com/rb-go/namegen)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/rb-go/namegen)](https://github.com/rb-go/namegen/releases)
[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/rb-go/namegen)](https://github.com/rb-go/namegen)
[![Go Report Card](https://goreportcard.com/badge/github.com/rb-go/namegen)](https://goreportcard.com/report/github.com/rb-go/namegen)
[![Coverage Status](https://coveralls.io/repos/github/rb-go/namegen/badge.svg)](https://coveralls.io/github/rb-go/namegen)
[![license](https://img.shields.io/github/license/rb-go/namegen.svg)](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