wallet

package
v0.0.0-...-a95355e Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInsufficientFunds = errors.New("cannot withraw, insufficient funds")

Functions

This section is empty.

Types

type Dogecoin

type Dogecoin int

func (Dogecoin) String

func (d Dogecoin) String() string

type Wallet

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

func (*Wallet) Balance

func (w *Wallet) Balance() Dogecoin

func (*Wallet) Deposit

func (w *Wallet) Deposit(amount Dogecoin)

func (*Wallet) Withdraw

func (w *Wallet) Withdraw(amount Dogecoin) error

Jump to

Keyboard shortcuts

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