Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payment ¶
type Payment struct {
// contains filtered or unexported fields
}
func NewPayment ¶
func NewPayment(name, cardid string, money int, strategy PaymentStrategy) *Payment
type PaymentContext ¶
type PaymentStrategy ¶
type PaymentStrategy interface {
Pay(*PaymentContext)
}
Click to show internal directories.
Click to hide internal directories.