Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sync ¶
func Sync(nn ...Nationalization) (lang2Nationalization map[string]Nationalization)
Sync returns the synced nationalizations derived from input and Wikipedia langLinks. It stores locally ".query2pagecache.json.gz" cache file so that eventual future calls will be blazing fast.
Types ¶
type Nationalization ¶
type Nationalization struct { Language string Topics []struct { Page Categories []Page `json:",omitempty"` } Filters []Page `json:",omitempty"` }
Nationalization represents a Nationalization, the data that binds Negapedia to Wikipedia
func New ¶
func New(lang string) (data Nationalization, err error)
New returns a Nationalization in the specified language if it does exist.