iso4217

package
v0.0.0-...-b39bbce Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const STANDARD_ISO_4217 = "iso4217"
View Source
const TOTAL_ENTITY = 77
View Source
const URL_WIKIPEDIA_PAGE = "https://en.wikipedia.org/wiki/ISO_4217"

Variables

This section is empty.

Functions

func ExtractEntityMapFromHtml

func ExtractEntityMapFromHtml(node *html.Node) (rs map[string]iso.IEntity)

func ExtractInnerTextFromHtml

func ExtractInnerTextFromHtml(node *html.Node) string

func New

func New() parser.IParser

func ParseRegionNameOrCodeFromString

func ParseRegionNameOrCodeFromString(s string) (shortName, alpha2Code string)

Parse the ISO 3166 region name and alpha-2 code from a string. E.g.

"Falkland Islands" "" from "Falkland Islands (pegged to GBP 1:1)"
"Vatican City" "VA" from "Vatican City (VA)[c]"

Types

type Parser

type Parser struct {
	Table iso.ITable
}

func (*Parser) GetTable

func (i *Parser) GetTable() iso.ITable

GetTable implements IReaderWriter.

func (*Parser) ParseWikipediaHtml

func (i *Parser) ParseWikipediaHtml(body []byte) (t iso.ITable, err error)

ParseWikipediaHtml implements IParser. Parse page content https://en.wikipedia.org/wiki/ISO_4217

Jump to

Keyboard shortcuts

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