MCPcopy
hub / github.com/tmrts/go-patterns / eventObserver

Struct eventObserver

behavioral/observer/main.go:43–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42type (
43 eventObserver struct{
44 id int
45 }
46
47 eventNotifier struct{
48 // Using a map with an empty struct allows us to keep the observers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected