MCPcopy
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
58func (o *eventNotifier) Register(l Observer) {
59 o.observers[l] = struct{}{}
60}
61
62func (o *eventNotifier) Deregister(l Observer) {
63 delete(o.observers, l)

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected