bank

package
v0.0.0-...-a8a07f9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

ex9.1 provides a concurrency-safe bank, with withdrawals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Balance

func Balance() int

func Deposit

func Deposit(amount int)

func Withdraw

func Withdraw(amount int) bool

Types

type Withdrawal

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

Jump to

Keyboard shortcuts

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