Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tmrts/go-patterns
/ Notify
Method
Notify
behavioral/observer/main.go:66–70 ·
view source on GitHub ↗
(e Event)
Source
from the content-addressed store, hash-verified
64
}
65
66
func
(p *eventNotifier) Notify(e Event) {
67
for
o :=
range
p.observers {
68
o.OnNotify(e)
69
}
70
}
71
72
func
main() {
73
// Initialize a new Notifier.
Callers
1
main
Function · 0.95
Calls
1
OnNotify
Method · 0.65
Tested by
no test coverage detected