ffjson icon indicating copy to clipboard operation
ffjson copied to clipboard

Have Encoder work with struct values not just pointers

Open yonderblue opened this issue 9 years ago • 0 comments

This might be more of a question than an issue, but I didn't see it in the docs.

All the examples show giving a reference to .Encode() but the regular encoding/json package supports giving a struct value as well. When I tried I got "ffjson marshal not available for type.." Otherwise loving the library :) Pretty slick when paired with go generate.

yonderblue avatar Apr 26 '15 20:04 yonderblue