Skip to content

A random name generator using data provide from the US Census

License

Notifications You must be signed in to change notification settings

athom/namepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NamePicker

A random name generator using data provided from the US Census

Installation

	go get "github.com/athom/namepicker"

Example

package main

import (
	"fmt"
	"github.com/athom/namepicker"
)

func main() {
	names := namepicker.RandomName()
	fmt.Println("RandomName:")
	fmt.Println(names)
	fmt.Println("")

	mnames := namepicker.RandomName()
	fmt.Println("MaleRandomName:")
	fmt.Println(mnames)
	fmt.Println("")

	fnames := namepicker.RandomName()
	fmt.Println("FemaleRandomName:")
	fmt.Println(fnames)
	fmt.Println("")

	fi, la := namepicker.RandomNames()
	fmt.Println("RandomNames:")
	fmt.Println(fi + "." + la)
	fmt.Println("")

	mfi, mla := namepicker.RandomMaleNames()
	fmt.Println("RandomMaleNames:")
	fmt.Println(mfi + "." + mla)
	fmt.Println("")

	ffi, fla := namepicker.RandomFemaleNames()
	fmt.Println("RandomFemaleNames:")
	fmt.Println(ffi + "." + fla)
	fmt.Println("")
	return
}

License

NamePicker is released under the MIT license.

About

A random name generator using data provide from the US Census

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages