You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package strategy
|
|
|
|
import "designpatterns/factory"
|
|
|
|
type CashContext struct {
|
|
cash factory.Casher
|
|
}
|
|
|
|
func (c CashContext) GetResponse(money float64) float64 {
|
|
return c.cash.AcceptCash(money)
|
|
}
|