-
Notifications
You must be signed in to change notification settings - Fork 235
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
Support unexported types #24
Comments
Can you give me a small example struct that does this? |
eg, under encoding/json, unexported types are not Marshalled, even if they have JSON tags: |
The play example shows how an unexported type can still be marshalled itself.. Fields in the struct type must be exported ofcourse. The situation I have is a bit different than the play example. In my case I have packages (not main/command) that have unexported types which are being marshalled to json by that package itself. The smallest example I can give of this is:
Running ffjson on that file exits with:
|
Ok, cool, this should be easy to fix. Will take a look shortly. |
Thanks! |
I have a package with several types that must be unexported, but are marshalled/unmarshalled to/from json. Running ffjson returns several errors:
I believe that creating ffjson with unexported types should be possible.
The text was updated successfully, but these errors were encountered: