atm

package
v0.0.0-...-a2a1f02 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deposit

func Deposit(a ATMer, c card.Carder, deposit int) int

Deposit creates an ATM

func LoadBank

func LoadBank(b bank.Banker)

LoadBank loads a bank interface to a package level map

func ShowBalance

func ShowBalance(a ATMer, c card.Carder) int

ShowBalance shows balance

func Withdraw

func Withdraw(a ATMer, c card.Carder, withdraw int) int

Withdraw creates an ATM

Types

type ATM

type ATM struct {
	Name string
}

ATM data

type ATMer

type ATMer interface {
	// contains filtered or unexported methods
}

ATMer interface

func NewATM

func NewATM(name string) ATMer

NewATM creates an ATM

Jump to

Keyboard shortcuts

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