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