| 12345678910111213141516171819 |
- package test
- func init() {
- marshalCases = append(marshalCases,
- //withChan{}, TODO: fix this
- )
- }
- type withChan struct {
- F2 chan []byte
- }
- func (q withChan) MarshalJSON() ([]byte, error) {
- return []byte(`""`), nil
- }
- func (q *withChan) UnmarshalJSON(value []byte) error {
- return nil
- }
|