wallet

package
v0.0.0-...-d0adc60 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Bitcoin

type Bitcoin int

func (Bitcoin) String

func (b Bitcoin) String() string

type Wallet

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

func (*Wallet) Balance

func (w *Wallet) Balance() Bitcoin

func (*Wallet) Deposit

func (w *Wallet) Deposit(amount Bitcoin)

func (*Wallet) Withdraw

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

Jump to

Keyboard shortcuts

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