parser

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WikiPageParser

type WikiPageParser struct {
	// contains filtered or unexported fields
}

WikiPageParser converts data from Wiki page into countries list

func NewWikiPageParser

func NewWikiPageParser(page *wiki.Page) *WikiPageParser

NewWikiPageParser creates new parser for given Wiki page

func (*WikiPageParser) Parse

func (p *WikiPageParser) Parse() []*internal.Country

Parse parses Wiki page contents into list of countries, if no countries are found from page empty slice is returned

Jump to

Keyboard shortcuts

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