bank

package
v0.0.0-...-5948a14 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Balance

func Balance() int

Balance returns the total balance

func Deposit

func Deposit(amount int)

Deposit money into the bank

func Withdraw

func Withdraw(amount int) bool

Withdraw a specified amount

Types

type Withdrawl

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

Withdrawl represents a bank withdrawl

Jump to

Keyboard shortcuts

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