Back integrate with patchy

This commit is contained in:
Ian Gulliver
2023-06-12 20:18:19 -07:00
parent b44b1f4c1f
commit 5b9725f98d
2 changed files with 10 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ type Event struct {
Data map[string]any `json:"data"`
}
func newEvent(eventType string, vals ...any) *Event {
func NewEvent(eventType string, vals ...any) *Event {
now := time.Now()
ev := &Event{