currency

package
v1.2.54 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Key = "01224f42b5704ea11357121151fc78f5"

Variables

This section is empty.

Functions

func Convert

func Convert(to string) (amount float64, err error)

Types

type Result

type Result struct {
	Reason string `json:"reason"`
	Result []struct {
		CurrencyF     string `json:"currencyF"`
		CurrencyFName string `json:"currencyF_Name"`
		CurrencyT     string `json:"currencyT"`
		CurrencyTName string `json:"currencyT_Name"`
		CurrencyFD    string `json:"currencyFD"`
		Exchange      string `json:"exchange"`
		Result        string `json:"result"`
		UpdateTime    string `json:"updateTime"`
	} `json:"result"`
	ErrorCode int `json:"error_code"`
}

Jump to

Keyboard shortcuts

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