1
0
mirror of https://github.com/json-iterator/go.git synced 2025-04-20 11:28:49 +02:00
json-iterator/value_tests/marshaler_test.go
2018-02-13 23:49:40 +08:00

20 lines
292 B
Go

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
}