Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Simplify MarshalJSON implementations #242

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

rhcarvalho
Copy link
Contributor

There is no need to embed the alias type in a struct when the aliased
type is already a struct itself and there are no new/shadowed fields.

A type conversion does the job of triggering the default json.Marshal
behavior.

There is no need to embed the alias type in a struct when the aliased
type is already a struct itself and there are no new/shadowed fields.

A type conversion does the job of triggering the default json.Marshal
behavior.
@rhcarvalho rhcarvalho merged commit 13e3ab1 into getsentry:master Jun 3, 2020
@rhcarvalho rhcarvalho deleted the simplify-marshaljson branch June 3, 2020 21:35
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