update question
This commit is contained in:
@ -13,9 +13,13 @@ type Transfer struct {
|
||||
Receiver int `json:"receiver"`
|
||||
}
|
||||
|
||||
var accounts = map[int]int{
|
||||
1: 1000,
|
||||
2: 1000,
|
||||
type Account struct {
|
||||
Amount int `json:"amount"`
|
||||
}
|
||||
|
||||
var accounts = map[int]Account{
|
||||
1: {Amount: 1000},
|
||||
2: {Amount: 1000},
|
||||
}
|
||||
|
||||
var transactions = []Transfer{}
|
||||
|
||||
Reference in New Issue
Block a user