ergen

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func NewGenerator

func NewGenerator(fontFile string) *Generator

func (*Generator) GenerateExchangeRates

func (g *Generator) GenerateExchangeRates(rates Rates) (*bytes.Buffer, error)

type RateRow

type RateRow struct {
	Currency string
	Exchange float64
}

type Rates

type Rates struct {
	Base   string
	Amount float64
	Rates  []RateRow
}

Jump to

Keyboard shortcuts

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