extractor

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SourceURL = iota
	SourceLocal
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cube

type Cube struct {
	Currency string `xml:"currency,attr"`
	Rate     string `xml:"rate,attr"`
}

type RootCube

type RootCube struct {
	Time  string `xml:"time,attr"`
	Cubes []Cube `xml:"Cube"`
}

type RootNode

type RootNode struct {
	Data RootCube `xml:"Cube>Cube"`
}

type XML added in v1.4.0

type XML struct {
	RootNode *RootNode
	// contains filtered or unexported fields
}

func New added in v1.4.0

func New(src source, localXML string) *XML

func (*XML) FetchData added in v1.4.0

func (extractor *XML) FetchData() error

Jump to

Keyboard shortcuts

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