Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 600 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 600 Bytes

go-random-name-gen

Generate Random Names for Go.

Usage

GenerateName(amountOfAdjectives, amountOfNouns, placesForRandomNumber)

Use like this:

import (
  nameGen "github.com/alternaDev/go-random-name-gen"
)

name, err := nameGen.GenerateName(1, 1, 3) // => DreadfulJoe091

You can also include custom file arguments (but make sure you include them when deploying!): GenerateName(amountOfAdjectives, amountOfNouns, placesForRandomNumber, pathToAdjectiveFile, pathToNounFile)

Development

After adding new Adjectives or Nouns, please run go generate so they will get included.