Documentation ¶
Index ¶
Constants ¶
const Arabic = "arabic"
Arabic language
const Catalan = "catalan"
Catalan language
const Chinese = "chinese"
Chinese language
const Czech = "czech"
Czech language
const Dutch = "dutch"
Dutch language
const English = "english"
English language
const Finnish = "finnish"
Finnish language
const French = "french"
French language
const German = "german"
German language
const Greek = "greek"
Greek language
const Hungarian = "hungarian"
Hungrian language
const Italian = "italian"
Italian language
const Japanese = "japanese"
Japanese language
const Korean = "korean"
Korean language
const Latin = "latin"
Latin language
const Lithuanian = "lithuanian"
Lithuanian language
const Polish = "polish"
Polish language
const Portuguese = "portuguese"
Portugeuse language
const Romanian = "romanian"
Romanian language
const Russian = "russian"
Russian language
const Spanish = "spanish"
Spanish language
const Swahili = "swahili"
Swahili language
const Ukrainian = "ukrainian"
Ukrainian language
Variables ¶
var CountryCodes = []string{}/* 261 elements not displayed */
CountryCodes is a list of Country Codes gathered from here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements This list is a union of the Officially assigned code elements combined with Exceptional reservations list. If you see a code missing and would like it added, please submit a PR with some information demonstrating the code is officially in use.
var FirstNames = []*Name{}/* 567 elements not displayed */
FirstNames is a collection of first names, with a best-effort approach to supporting a given name in multiple languages/cultures at one time. Currently, it's mostly English / European names, because I found a very convenient CSV with the data to crib from. Please contribute any missing languages to existing names, or new names with as many different languages as you can!
var Langauges = []string{ English, Dutch, Japanese, Romanian, Chinese, Korean, Spanish, German, Swahili, Russian, Portuguese, French, Latin, Italian, Catalan, Arabic, Ukrainian, Polish, Czech, Greek, Hungarian, Finnish, Lithuanian, }
Langauges is a list of possible languages for which Moldova can generate names
var LastNames = []*Name{}/* 442 elements not displayed */
LastNmaes is a collection of last names, with a best-effort approach to supporting a given name in multiple languages/cultures at one time. This part is in serious need of contributor assistance! Please help fill this out if you can! I made an effort to try and fill in a bunch of Romanian ones, to honor the namesake of the library, but this needs a lot of TLC!
var PrintableRanges = [][]int{
{0x0400, 0x04ff},
{0x0377, 0x03ff},
{0x1100, 0x11ff},
{0x4e00, 0x4f80},
{0x5000, 0x9fa0},
{0x3400, 0x4db0},
{0x0600, 0x06ff},
{0x30a0, 0x30f0},
{0xfb50, 0xfdff},
{0x0e00, 0x0e7f},
{0x10900, 0x1091f},
}
PrintableRanges is a list of regions in Unicode that are displayable. If you'd like to see a new range added here, please open a PR, and include a link to wikipedia or another resource demonstrating what characters are in the range
var TimeFormats = map[string]string{
"simple": "2006-01-02 15:04:05",
"simpletz": "2006-01-02 15:04:05 -0700",
}
TimeFormats is a lookup map of a few common, defined formatting strings for ease of use.
Functions ¶
func KnownLanguage ¶
Types ¶
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
Name represents a name, Family or Given, that has both a traditional and a romanized version of the text, depending on the needs of the user
func (*Name) GetSpelling ¶
GetSpelling will return the first match found for the provided list of languages, in the order in which they were passed in