Skip to content

paulbellamy/name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

name

Super-simple golang library for generating friendly Heroku-style names. I've copy-pasted it around a few projects, and figured it's time to turn it into a proper library.

Some example names:

feisty-haze-34
gentle-meadow-66
twilight-silence-38
long-rain-82
summer-lake-10
giant-glade-02
black-moon-92
red-sun-54
still-frog-05
dark-wildflower-69

Usage

Make sure you seed the random number generator before using this. For example:

package main

import (
	"fmt"
	"math/rand"
	"time"

	"github.com/paulbellamy/name"
)

func main() {
	rand.Seed(time.Now().UnixNano())
	fmt.Println(name.Generate())
}

About

Super-simple golang library for generating friendly names

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages