currency_api

package
v0.0.0-...-2b57cc2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDateCourse

func GetDateCourse(currencyCode string, strDate string) (float64, error)

func GetLatestCourse

func GetLatestCourse(currencyCode string) (float64, error)

Возвращает текущий курс запрашиваемой валюты

Types

type Currency

type Currency struct {
	Code    string `xml:"CharCode"`
	Nominal int    `xml:"Nominal"`
	Value   string `xml:"Value"`
}

Данные одной валюты

type CurrencyList

type CurrencyList struct {
	XMLName    xml.Name   `xml:"ValCurs"`
	Currencies []Currency `xml:"Valute"`
}

Список всех распарсенных валют из XML

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳