master
sendEvent
func sendEvent(event *event) error { payload, err := json.Marshal(event) if err != nil { return err }