Documentation ¶
Overview ¶
Package namesgenerator generates random names.
This package is officially "frozen" - no new additions will be accepted.
For a long time, this package provided a lot of joy within the project, but at some point the conflicts of opinion became greater than the added joy.
At some future time, this may be replaced with something that sparks less controversy, but for now it will remain as-is.
See also https://github.com/moby/moby/pull/43210#issuecomment-1029934277 See also - https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go - https://github.com/lucasepe/codename - https://github.com/goombaio/namegenerator - https://github.com/Pallinder/go-randomdata - https://github.com/dustinkirkland/golang-petname - https://github.com/cip8/autoname?ref=golangexample.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomName ¶
GetRandomName generates a random name from the list of adjectives and surnames in this package formatted as "adjective_surname". For example 'focused_turing'. If retry is non-zero, a random integer between 0 and 10 will be added to the end of the name, e.g `focused_turing3`
Types ¶
This section is empty.