namegen

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SampleLettersC  = Letters("smplnkbzdfgmpktrln")
	SampleLettersV  = Letters("aaeeoouieaouieay")
	SampleSyllableC = Concat(SampleLettersC, SampleLettersV, SampleLettersC)
	SampleSyllableO = Concat(SampleLettersC, SampleLettersV)

	SampleName = Concat(sampleChoice, sampleChoice, sampleChoice)

	Sample2LettersC  = Letters("mpnkbdgpktr")
	Sample2LettersV  = Letters("aaeoouieaou")
	Sample2SyllableC = Concat(Sample2LettersC, Sample2LettersV, Sample2LettersC)
	Sample2SyllableO = Concat(Sample2LettersC, Sample2LettersV)

	Sample2Name = Concat(sample2Choice, sample2Choice)
)

Functions

func Blank

func Blank(r RandIntn) string

Types

type Generator

type Generator func(r RandIntn) string

func Concat

func Concat(gens ...Generator) Generator

func FromWords

func FromWords(words ...string) Generator

func Letters

func Letters(letters string) Generator

func Oneof

func Oneof(gens ...Generator) Generator

type RandIntn

type RandIntn func(n int) int

func Rng

func Rng(seed int64) RandIntn

Jump to

Keyboard shortcuts

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