names

package module
v0.0.0-...-7143892 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 4 Imported by: 0

README

Names

Go package for generating random names so that I don't ever have to do this again. Generates random first names, last names, full names and docker container-type names from a long list.

If nationality or gender-specific names are needed:

Many sources on github:

Many official sources such as INE (Instituto Nacional de Estadística): [Demografía y población / Padrón Población por municipios / Apellidos y nombres más frecuentes] (http://www.ine.es/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&cid=1254736177009&menu=resultados&secc=1254736195454&idp=1254734710990)

And much much more.

I then got the word lists from https://github.com/quitehimself/names to generate mock sentences.

Documentation

Overview

Package names is aimed at generating random names while testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDockerName

func GetDockerName() string

GetDockerName returns the same names as you would get from docker

func GetFirstName

func GetFirstName() string

GetFirstName provides one first name at random

func GetName

func GetName() string

GetName provides a string of the form "name surname"

func GetSurname

func GetSurname() string

GetSurname provides one surname at random

func MakeSentence1

func MakeSentence1() string

MakeSentence1 returns a mock sentence

func MakeSentence2

func MakeSentence2() string

MakeSentence2 returns a mock sentence

Types

This section is empty.

Jump to

Keyboard shortcuts

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