Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 344 Bytes
package acr122u
// Handler is the interface that handles each card when present in the field.
type Handler interface {
ServeCard(Card)
}
// HandlerFunc is the function signature for handling a card
type HandlerFunc func(Card)
// ServeCard makes HandlerFunc implement the Handler interface
func (hf HandlerFunc) ServeCard(c Card) {
hf(c)
}
You can’t perform that action at this time.