MCPcopy Create free account
hub / github.com/PacktPublishing/Go-Design-Patterns / PaymentMethod

Interface PaymentMethod

Chapter02/factory.go:10–12  ·  view source on GitHub ↗

PaymentMethod defines a way of paying in the shop. This factory method returns objects that implements this interface

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestGetPaymentMethodCashFunction · 0.65

Implementers 3

CashPMChapter02/factory.go
DebitCardPMChapter02/factory.go
NewDebitCardPMChapter02/factory.go

Calls

no outgoing calls

Tested by

no test coverage detected