MCPcopy Create free account
hub / github.com/koding/kite / MarshalJSON

Method MarshalJSON

dnode/callback.go:31–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func (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
38func (*Function) UnmarshalJSON(data []byte) error {
39 return nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected