Closed SchumacherFM closed 9 years ago
Sorry ... should have better read the doc :-)
type Selfer interface {
CodecEncodeSelf(*Encoder)
CodecDecodeSelf(*Decoder)
}
@SchumacherFM codec now supports (M|Unm)arshalJSON when using the JSON Handle. This may help make your transition easier.
Cool! Thanks! I've implemented your pkg here: https://github.com/corestoreio/csfw/blob/master/codegen%2FtableToStruct%2Fcodecgen%2Fgen.go
I'm afraid that I have to include your files because you didn't provide a public API.
First, I thank you for the great project!
Given the following situation:
NullString satisfies the encoding/json interface for custom marshaling. The json output of a NullString type would not be:
it will be
Is there a possibility to achieve the same with an additional interface on the type NullString with your encoder/decoder? 😀