mirror of
https://github.com/json-iterator/go.git
synced 2025-04-20 11:28:49 +02:00
20 lines
292 B
Go
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
|
||
|
}
|