MCPcopy Index your code
hub / github.com/koding/kite / IsValid

Method IsValid

dnode/callback.go:27–29  ·  view source on GitHub ↗

IsValid returns true if f represents a Function. It returns false if f is the zero Value.

()

Source from the content-addressed store, hash-verified

25// IsValid returns true if f represents a Function.
26// It returns false if f is the zero Value.
27func (f Function) IsValid() bool {
28 return f.Caller != nil
29}
30
31func (f Function) MarshalJSON() ([]byte, error) {
32 if _, ok := f.Caller.(callback); !ok {

Callers 1

CallMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected