unique

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 5 Imported by: 1

README

unique-names-generator

Tests

Generate random and unique names. This package is a Go implementation javascript module unique-names-generator.

Installation
go get github.com/sibiraj-s/unique-names-generator

and then import it in your code:

import "github.com/sibiraj-s/unique-names-generator"
Usage

Generate a random name:

unique.New()
Documentation

Go Reference

Godoc site: https://pkg.go.dev/github.com/sibiraj-s/unique-names-generator#section-readme

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Adjectives = []string{}/* 1515 elements not displayed */

Adjectives list

View Source
var Animals = []string{}/* 390 elements not displayed */

Animals list

View Source
var Colors = []string{
	"amaranth",
	"amber",
	"amethyst",
	"apricot",
	"aqua",
	"aquamarine",
	"azure",
	"beige",
	"black",
	"blue",
	"blush",
	"bronze",
	"brown",
	"cerulean",
	"chartreuse",
	"chocolate",
	"cobalt",
	"coffee",
	"copper",
	"coral",
	"crimson",
	"cyan",
	"ebony",
	"emerald",
	"fuchsia",
	"gold",
	"gray",
	"green",
	"harlequin",
	"indigo",
	"ivory",
	"jade",
	"khaki",
	"lavender",
	"lilac",
	"lime",
	"magenta",
	"maroon",
	"mint",
	"moccasin",
	"navy",
	"ochre",
	"olive",
	"orange",
	"peach",
	"periwinkle",
	"pink",
	"plum",
	"purple",
	"red",
	"rose",
	"ruby",
	"salmon",
	"sapphire",
	"scarlet",
	"sepia",
	"silver",
	"tan",
	"teal",
	"tomato",
	"turquoise",
	"vermilion",
	"violet",
	"white",
	"yellow",
}

Colors list

View Source
var Countries = []string{}/* 258 elements not displayed */

Countries list

View Source
var Languages = []string{
	"british",
	"english",
	"irish",
	"turkish",
	"japanese",
	"chinese",
	"korean",
	"palestinian",
	"canadian",
	"australian",
	"asian",
	"african",
	"italian",
	"indian",
	"russian",
	"american",
	"german",
	"european",
	"iraqi",
	"israeli",
	"arab",
	"jewish",
	"scottish",
	"polish",
	"spanish",
	"islamic",
	"catholic",
}

Languages list

View Source
var Names = []string{}/* 4940 elements not displayed */

Names list

View Source
var StarWars = []string{}/* 115 elements not displayed */

StarWars list

Functions

func New

func New(options ...Options) string

New creates random unique names

Types

type Options added in v0.2.0

type Options struct {
	Dictionaries [][]string
	Length       int
	Separator    *string
	Seed         int64
	Style        string
}

Options is the input argument for Generate function

Jump to

Keyboard shortcuts

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