MCPcopy Index your code
hub / github.com/Monibuca/engine / MarshalJSON

Method MarshalJSON

subscribers.go:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func (s *Subscribers) MarshalJSON() ([]byte, error) {
25 var subers []ISubscriber
26 for suber := range s.public {
27 subers = append(subers, suber)
28 }
29 return json.Marshal(subers)
30}
31
32func (s *Subscribers) Broadcast(event any) {
33 for sub := range s.internal {

Callers

nothing calls this directly

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected