money

package
v0.0.0-...-9b7003c Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Money

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

func NewFromInt

func NewFromInt(v int) Money

func (Money) Add

func (m Money) Add(v Money) Money

func (Money) AsInt

func (m Money) AsInt() int

func (Money) IsNegative

func (m Money) IsNegative() bool

func (Money) IsPositive

func (m Money) IsPositive() bool

func (Money) Sub

func (m Money) Sub(v Money) Money

Jump to

Keyboard shortcuts

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