craban/server/vendor/github.com/icrowley/fake/personal.go
Miguel de la Cruz ca0bfa2398 Rename to craban
2021-09-12 18:57:42 +02:00

24 lines
428 B
Go

package fake
import (
"strings"
)
// Gender generates random gender
func Gender() string {
return lookup(lang, "genders", true)
}
// GenderAbbrev returns first downcased letter of the random gender
func GenderAbbrev() string {
g := Gender()
if g != "" {
return strings.ToLower(string(g[0]))
}
return ""
}
// Language generates random human language
func Language() string {
return lookup(lang, "languages", true)
}