Skip to content

Public Marshal API Simplification #90

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

Merged
merged 5 commits into from
Jun 29, 2017

Conversation

aren55555
Copy link
Contributor

@aren55555 aren55555 commented May 24, 2017

We used to have 6 Marshal functions:

  1. MarshalOnePayload
  2. MarshalOnePayloadWithoutIncluded
  3. MarshalOne
  4. MarshalManyPayload
  5. MarshalManyPayloadWithoutIncluded
  6. MarshalMany

This PR reduces the Public Marshal methods to just 3:

  1. MarshalPayload
  2. MarshalPayloadWithoutIncluded
  3. Marshal

This simplifies the public API; will be easier to explain and document while still providing the existing support for struct ptrs (&Blog{}) and slices of struct ptrs ([]*Blog{}).

…Included, MarshalOne, MarshalManyPayload, MarshalManyPayloadWithoutIncluded, MarshalMany - now there are only 3: MarshalPayload, MarshalPayloadWithoutIncluded, Marshal. This simplifies the public API; will be easier to explain and document while still providing the existing support for struct ptrs (&Blog{}) and slices of struct ptrs ([]*Blog{}).
@aren55555 aren55555 changed the title Used to have 6 functions: MarshalOnePayload, MarshalOnePayloadWithout… Public Marshal API Simplification May 24, 2017
@aren55555 aren55555 force-pushed the feature/simplifiy-marshal-api branch from 27cc356 to d8473fd Compare May 24, 2017 03:32
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