marshaler_test.go 292 B

12345678910111213141516171819
  1. package test
  2. func init() {
  3. marshalCases = append(marshalCases,
  4. //withChan{}, TODO: fix this
  5. )
  6. }
  7. type withChan struct {
  8. F2 chan []byte
  9. }
  10. func (q withChan) MarshalJSON() ([]byte, error) {
  11. return []byte(`""`), nil
  12. }
  13. func (q *withChan) UnmarshalJSON(value []byte) error {
  14. return nil
  15. }