exchange

package
v0.0.0-...-de70ca6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 7 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(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