namegen

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 3 Imported by: 0

README

Team Name Generator for Go

This package generates random names for teams and similar things such as Xenial Giraffe, Happy Rabbit, etc.

Install

go get github.com/BenjaminNolan/go-namegen

Usage

package main

import namegen "github.com/BenjaminNolan/namegen"

func main() {
	generator := namegen.New()

	// Set to false to generate lower-case names
	generator.Capitalize = false

	// If you want to generate alliterative names like Kind Kiwi, Amazing Aardvark, Lucky Lemur, etc, set this to true
	generator.Alliterate = true

	// If you want dashes or underscores instead of spaces, set Separator to your desired character(s)
	generator.Separator = "-"

	println(generator.Generate())
}

Adding words

If you want to add words or functionality here, feel free to whang over a PR. :)

License

This is MIT licensed, see LICENSE for more info.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Data = &GeneratorData{
	Adjectives: []string{
		"adventurous",
		"amazing",
		"amusing",
		"awesome",
		"bold",
		"bouncy",
		"brave",
		"brilliant",
		"bubbly",
		"cheerful",
		"chirpy",
		"clever",
		"confident",
		"courageous",
		"delightful",
		"eager",
		"excited",
		"friendly",
		"funny",
		"gentle",
		"glamorous",
		"good",
		"happy",
		"helpful",
		"impressive",
		"incredible",
		"inspiring",
		"intelligent",
		"interesting",
		"jolly",
		"jovial",
		"joyful",
		"keen",
		"kind",
		"knowing",
		"knowledgeable",
		"lively",
		"lovely",
		"lucky",
		"magic",
		"magnificent",
		"marvellous",
		"merry",
		"mysterious",
		"nice",
		"nifty",
		"optimistic",
		"outstanding",
		"perfect",
		"pleasant",
		"polite",
		"proud",
		"quick",
		"quiet",
		"reliable",
		"relieved",
		"silly",
		"smiling",
		"splendid",
		"successful",
		"thoughtful",
		"unique",
		"upbeat",
		"vibrant",
		"vivacious",
		"warm",
		"whimsical",
		"witty",
		"wonderful",
		"xenial",
		"youthful",
		"yummy",
		"zesty",
		"zippy",
	},
	Nouns: []string{
		"aardvark",
		"albatross",
		"alligator",
		"allosaurus",
		"alpaca",
		"anaconda",
		"ant",
		"anteater",
		"archaeopteryx",
		"armadillo",
		"baboon",
		"badger",
		"bear",
		"bee",
		"bird",
		"bison",
		"bongo",
		"brontosaurus",
		"buffalo",
		"bunny",
		"butterfly",
		"camel",
		"cat",
		"chameleon",
		"cheetah",
		"chicken",
		"chimpanzee",
		"coelacanth",
		"cow",
		"crocodile",
		"deer",
		"diplodocus",
		"dog",
		"dolphin",
		"duck",
		"eagle",
		"echidna",
		"eland",
		"elephant",
		"elk",
		"emu",
		"falcon",
		"ferret",
		"fish",
		"flamingo",
		"fly",
		"fox",
		"frog",
		"gazelle",
		"gecko",
		"gelada",
		"gerbil",
		"gerenuk",
		"giraffe",
		"goat",
		"goldfish",
		"gopher",
		"gorilla",
		"grizzly",
		"guineapig",
		"hamster",
		"hare",
		"hedgehog",
		"hippo",
		"hippopotamus",
		"horse",
		"hyena",
		"hyrax",
		"ibex",
		"ibis",
		"ichthyosaurus",
		"iguana",
		"iguanodon",
		"impala",
		"jaguar",
		"jellyfish",
		"kangaroo",
		"kitten",
		"kiwi",
		"koala",
		"kob",
		"kudu",
		"lemming",
		"lemur",
		"leopard",
		"liger",
		"lion",
		"lizard",
		"llama",
		"lobster",
		"lynx",
		"mammoth",
		"megalodon",
		"megalosaurus",
		"mole",
		"mongoose",
		"monkey",
		"octopus",
		"ornithomimus",
		"oryx",
		"ostrich",
		"owl",
		"panda",
		"pangolin",
		"parasaurolophus",
		"parrot",
		"peacock",
		"penguin",
		"pig",
		"pigeon",
		"polar bear",
		"pomeranian",
		"poodle",
		"porcupine",
		"pterodactyl",
		"puffin",
		"puma",
		"puppy",
		"quail",
		"quokka",
		"rabbit",
		"raccoon",
		"ram",
		"rat",
		"raven",
		"reindeer",
		"rhino",
		"rhinoceros",
		"roadrunner",
		"robin",
		"sasquatch",
		"scorpion",
		"seal",
		"serval",
		"shark",
		"sheep",
		"snail",
		"snake",
		"spider",
		"squirrel",
		"stegosaurus",
		"tiger",
		"trex",
		"triceratops",
		"turtle",
		"velociraptor",
		"vole",
		"walrus",
		"warthog",
		"weasel",
		"wildcat",
		"wildebeest",
		"wolf",
		"zebra",

		"athena",
		"daisy",
		"dexter",
		"henrietta",
		"merlin",
		"mildred",
		"riga",
		"rollo",
	},
}

Functions

func Generate

func Generate() string

Generate returns a random name, equivalent to calling namegen.New().Generate()

Types

type Generator

type Generator struct {
	Capitalize bool
	Alliterate bool
	Separator  string
}

func New

func New() *Generator

func (*Generator) Generate

func (g *Generator) Generate() string

type GeneratorData

type GeneratorData struct {
	Adjectives []string
	Nouns      []string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL