extract

package
v0.0.0-...-0d47d07 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdministrativeLanguage

type AdministrativeLanguage struct {
	Alpha2         string
	Alpha3         string
	LocalShortName string
}

type Alpha2Code

type Alpha2Code struct {
	EnglishShortName string
	Code             string
}

func ExtractAlpha2Code

func ExtractAlpha2Code(r io.Reader) ([]Alpha2Code, error)

type Detail

type Detail struct {
	Alpha2Code         string `db:"alpha_2_code"`
	ShortName          string `db:"short_name"`
	ShortNameLowerCase string `db:"short_name_lower_case"`
	FullName           string `db:"full_name"`
	Alpha3Code         string `db:"alpha_3_code"`
	NumericCode        string `db:"numeric_code"`
	Remarks            string `db:"remarks"`
	Independent        string `db:"independent"`
	TerritoryName      string `db:"territory_name"`
	Status             string `db:"status"`
	Languages          []AdministrativeLanguage
	Subdivisions       []Subdivision
}

func ExtractDetail

func ExtractDetail(r io.Reader) (*Detail, error)

type Language

type Language struct {
	Alpha2 string `db:"alpha_2_code"`
	Alpha3 string `db:"alpha_3_code"`
}

type Subdivision

type Subdivision struct {
	CountryCode        string `db:"country_code"`
	Category           string `db:"category"`
	Code31662          string `db:"code_31662"`
	Name               string `db:"name"`
	LocalVariant       string `db:"local_variant"`
	LanguageCode       string `db:"language_code"`
	RomanizationSystem string `db:"romanization_system"`
	ParentSubdivision  string `db:"parent_subdivision"`
}

Jump to

Keyboard shortcuts

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