bank

package
v0.0.0-...-c4986e2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: MIT 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 amount in the bank.

func Deposit

func Deposit(amount int)

Deposit adds amount to bank.

func Withdraw

func Withdraw(amount int) bool

Withdraw takes off amount from the bank.

Types

type Withdrawal

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

Withdrawal is structure for taking off amount from bank.

Jump to

Keyboard shortcuts

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