Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants