data

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const Arabic = "arabic"

Arabic language

View Source
const Catalan = "catalan"

Catalan language

View Source
const Chinese = "chinese"

Chinese language

View Source
const Czech = "czech"

Czech language

View Source
const Dutch = "dutch"

Dutch language

View Source
const English = "english"

English language

View Source
const Finnish = "finnish"

Finnish language

View Source
const French = "french"

French language

View Source
const German = "german"

German language

View Source
const Greek = "greek"

Greek language

View Source
const Hungarian = "hungarian"

Hungrian language

View Source
const Italian = "italian"

Italian language

View Source
const Japanese = "japanese"

Japanese language

View Source
const Korean = "korean"

Korean language

View Source
const Latin = "latin"

Latin language

View Source
const Lithuanian = "lithuanian"

Lithuanian language

View Source
const Polish = "polish"

Polish language

View Source
const Portuguese = "portuguese"

Portugeuse language

View Source
const Romanian = "romanian"

Romanian language

View Source
const Russian = "russian"

Russian language

View Source
const Spanish = "spanish"

Spanish language

View Source
const Swahili = "swahili"

Swahili language

View Source
const Ukrainian = "ukrainian"

Ukrainian language

Variables

View Source
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.

View Source
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!

Langauges is a list of possible languages for which Moldova can generate names

View Source
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!

View Source
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

View Source
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

func KnownLanguage(lang string) bool

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

func (n *Name) GetSpelling(languages ...string) string

GetSpelling will return the first match found for the provided list of languages, in the order in which they were passed in

Jump to

Keyboard shortcuts

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