Event is now a struct with type and data
Event struct fields set to public access
go fmt