Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Customer ¶
type Customer struct { Id uint8 `json:"id"` Balance int32 `json:"balance"` Limit int32 `json:"limit"` Transactions []Transaction }
func (*Customer) ReverseTransactions ¶
func (c *Customer) ReverseTransactions()
func (*Customer) Transact ¶
func (c *Customer) Transact(transaction Transaction) error
type Transaction ¶
type Transaction struct { Value int32 `json:"valor"` TransactionType TransactionType `json:"tipo"` Description string `json:"descricao"` }
type TransactionType ¶
type TransactionType string
const ( Credit TransactionType = "c" Debit TransactionType = "d" )
Click to show internal directories.
Click to hide internal directories.