GetFunc attempts to find a function on this instance by `name`. May return `nil` if this instance has no function named `name`, it is not a function, etc.
(store Storelike, name string)
| 111 | // May return `nil` if this instance has no function named `name`, |
| 112 | // it is not a function, etc. |
| 113 | func (i *Instance) GetFunc(store Storelike, name string) *Func { |
| 114 | f := i.GetExport(store, name) |
| 115 | if f == nil { |
| 116 | return nil |
| 117 | } |
| 118 | return f.Func() |
| 119 | } |