internal

package
v0.0.0-...-e031b33 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MaxLength = 99

Variables

View Source
var (
	ErrDataTooLong = errors.New("emvqr: data too long")
)

Functions

This section is empty.

Types

type Currency

type Currency struct {
	Amount interface{}
	Code   string
}

func (*Currency) Value

func (c *Currency) Value() (string, error)

type CurrencyFormatter

type CurrencyFormatter struct {
	Amount interface{}
	Unit   currency.Unit
}

func (*CurrencyFormatter) Format

func (a *CurrencyFormatter) Format(s fmt.State, verb rune)

type Float64

type Float64 float64

func (Float64) Value

func (a Float64) Value() (string, error)

type Pair

type Pair struct {
	ID   string
	Data Valuer
}

type String

type String string

func (String) Value

func (s String) Value() (string, error)

type Uint64

type Uint64 uint64

func (Uint64) Value

func (a Uint64) Value() (string, error)

type Valuer

type Valuer interface {
	Value() (string, error)
}

func List

func List(pairs []Pair) Valuer

func ListRoot

func ListRoot(pairs []Pair) Valuer

Jump to

Keyboard shortcuts

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