()
| 29 | } |
| 30 | |
| 31 | func (f Function) MarshalJSON() ([]byte, error) { |
| 32 | if _, ok := f.Caller.(callback); !ok { |
| 33 | return []byte(`null`), nil |
| 34 | } |
| 35 | return []byte(`"[Function]"`), nil |
| 36 | } |
| 37 | |
| 38 | func (*Function) UnmarshalJSON(data []byte) error { |
| 39 | return nil |
nothing calls this directly
no outgoing calls
no test coverage detected