money

package
v0.0.0-...-708c7a7 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount int64

func FromCenti

func FromCenti(v int64) Amount

func FromMilli

func FromMilli(v int64) Amount

func (Amount) AsCenti

func (a Amount) AsCenti() int64

func (Amount) AsDeci

func (a Amount) AsDeci() int64

func (Amount) AsInt

func (a Amount) AsInt() int64

func (Amount) AsMilli

func (a Amount) AsMilli() int64

func (*Amount) FromCenti

func (a *Amount) FromCenti(v int64)

func (*Amount) FromMilli

func (a *Amount) FromMilli(v int64)

type Formatter

type Formatter struct {
	Thousand rune
	Decimal  rune
}

func (Formatter) Sprint

func (f Formatter) Sprint(a Amount) string

Jump to

Keyboard shortcuts

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