frankfurtergo

package module
v0.0.0-...-eb48074 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 2 Imported by: 0

README

frankfurterGo

A neat Go wrapper for the frankfurter.app API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(options ...ClientOptions) *Client

func (*Client) FetchCurrencies

func (c *Client) FetchCurrencies()

type ClientOptions

type ClientOptions struct {
	Endpoint string `json:"endpoint"`
}

type Date

type Date struct {
	Year  int `json:"year"`
	Month int `json:"month"`
	Day   int `json:"day"`
}

type Latest

type Latest struct {
	Amount int      `json:"amount"`
	Base   string   `json:"base"`
	Date   Date     `json:"date"`
	Rates  []string `json:"string"`
}

Jump to

Keyboard shortcuts

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