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-14 15:04:23 +08:00

20 lines
275 B
Go

package test
func init() {
marshalCases = append(marshalCases,
withChan{},
)
}
type withChan struct {
F2 chan []byte
}
func (q withChan) MarshalJSON() ([]byte, error) {
return []byte(`""`), nil
}
func (q *withChan) UnmarshalJSON(value []byte) error {
return nil
}