(name string)
| 171 | } |
| 172 | |
| 173 | func (stct *Struct) Method(name string) *Function { |
| 174 | for _, method := range stct.Methods() { |
| 175 | if method.Name() == name { |
| 176 | return method |
| 177 | } |
| 178 | } |
| 179 | return nil |
| 180 | } |
| 181 | |
| 182 | func (stct *Struct) PublicMethods() (methods []*Function) { |
| 183 | for _, file := range stct.Package().Files() { |