Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tmrts/go-patterns
/ Register
Method
Register
behavioral/observer/main.go:58–60 ·
view source on GitHub ↗
(l Observer)
Source
from the content-addressed store, hash-verified
56
}
57
58
func
(o *eventNotifier) Register(l Observer) {
59
o.observers[l] =
struct
{}{}
60
}
61
62
func
(o *eventNotifier) Deregister(l Observer) {
63
delete(o.observers, l)
Callers
1
main
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected