Skip to content

Commit a7e0581

Browse files
committed
✨ (bitcoin-wallet): add withdraw receiver function fix compile error
1 parent dccc5ae commit a7e0581

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pointers-and-errors/bitcoin-and-wallet.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ type Wallet struct {
1313
balance Bitcoin
1414
}
1515

16+
// Deposit - deposit amount into wallet balance
1617
func (w *Wallet) Deposit(amount Bitcoin) {
1718
w.balance += amount
1819
}
1920

21+
// Balance - show bitcoin balance
2022
func (w *Wallet) Balance() Bitcoin {
2123
return w.balance
2224
}
25+
26+
// Withdraw -
27+
func (w *Wallet) Withdraw(amount Bitcoin) {
28+
29+
}

0 commit comments

Comments
 (0)