belinvestbankExchange

package module
v0.0.0-...-5f222b8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LOGGER      = log.New(os.Stderr, `belinvestbankExchange#`, log.Lshortfile)
	URL         = `https://www.belinvestbank.by/exchange-rates/courses-tab-cashless`
	ErrNotFound = errors.New(`HTML element not found`)
)

Functions

func Get

func Get(r io.Reader) (map[string]Currency, error)

use nil instead reader to make http request

func MakeRequest

func MakeRequest() (*http.Response, error)

Types

type Currency

type Currency struct {
	Id      string
	Nominal float64
	Buy     float64
	Sell    float64
}

Jump to

Keyboard shortcuts

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