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

Custom types #104

Open
wants to merge 29 commits into
base: feature/embeded-structs
Choose a base branch
from
Open

Conversation

skimata
Copy link

@skimata skimata commented Jul 26, 2017

This work is on top of PR #100. That one should get reviewed first for clarity.
Since I had an opportunity, and was already deep into some jsonapi work, I implemented support for struct fields of custom types.

In order to get support for custom types, it must implement the json.Marshaler/json.Unmarshaler interfaces. I included 2 examples custom types that I think could be useful to a wide audience (also might want to use it later to refactor the time.Time value support). This feature should also technically supports these issues: #49 and #74. Those "structs" in those examples are (custom) types declarations.

@aren55555 aren55555 changed the base branch from master to feature/embeded-structs July 27, 2017 18:17
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.

1 participant