exchange

package
v0.0.0-...-7c18459 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct{}

Converter will convert the base price to the currency supplied Note: we are expecting sane inputs and therefore skipping input validation

func (*Converter) Do

func (c *Converter) Do(ctx context.Context, basePrice float64, currency string) (float64, error)

Do will perform the conversion

Jump to

Keyboard shortcuts

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