jsons

package
v0.0.0-...-2369477 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Country

type Country struct {
	Name CountryName `json:"name"`
	TLD  []string    `json:"tld"`
	Cca2 string      `json:"cca2"`
	Ccn3 string      `json:"ccn3"`
	Cca3 string      `json:"cca3"`
	Cioc string      `json:"cioc"`
}

Country struct

type CountryList

type CountryList struct {
	Countries []Country `json:"countries"`
}

CountryList struct

func JsonCountries

func JsonCountries() (*CountryList, error)

JsonCountries list of countries

type CountryName

type CountryName struct {
	Common   string `json:"common"`
	Official string `json:"official"`
}

CountryName struct

type States

type States struct {
	States map[string]string `json:"states"`
}

States struct

func JsonStates

func JsonStates() (*States, error)

JsonStates get states list

Jump to

Keyboard shortcuts

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