pointers

package
v0.0.0-...-0f1fd67 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InsufficientFundsError = 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