Documentation
¶
Index ¶
Constants ¶
View Source
const ( Cash = iota DebitCard CreditCard )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreditCardPM ¶
type CreditCardPM struct{}
func (*CreditCardPM) Pay ¶
func (d *CreditCardPM) Pay(amount float32) string
type DebitCardPM ¶
type DebitCardPM struct{}
func (*DebitCardPM) Pay ¶
func (c *DebitCardPM) Pay(amount float32) string
type PaymentMethod ¶
func GetPaymentMethod ¶
func GetPaymentMethod(m int) (PaymentMethod, error)
Click to show internal directories.
Click to hide internal directories.