MCPcopy Create free account
hub / github.com/goinaction/code / sendNotification

Function sendNotification

chapter5/listing48/listing48.go:53–55  ·  view source on GitHub ↗

sendNotification accepts values that implement the notifier interface and sends notifications.

(n notifier)

Source from the content-addressed store, hash-verified

51// sendNotification accepts values that implement the notifier
52// interface and sends notifications.
53func sendNotification(n notifier) {
54 n.notify()
55}

Callers 1

mainFunction · 0.70

Calls 1

notifyMethod · 0.65

Tested by

no test coverage detected