Skip to content

Conversation

@TobiEiss
Copy link
Contributor

@TobiEiss TobiEiss commented Oct 7, 2017

To provide json-marshaling for the event struct, i've removed all the getter and setter and set all attributes of event public.
Add also json-tags to event.

@buildscientist
Copy link
Contributor

@PuloV Looks like too large of a change just to support serializing to JSON. Beyond code clutter - replacing the getters/setters with callbacks seems to be overkill.

I also don't think it should be the responsibility of ics-golang to handle serializing event data. If someone wants to do that - they can create their own event struct to do that.

What if a user of the library does not want to use the json-tags specified? Now this is being forced on them.

Recommend you close this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants