MCPcopy Index your code
hub / github.com/livebud/bud / Method

Method Method

package/parser/struct.go:173–180  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

171}
172
173func (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
182func (stct *Struct) PublicMethods() (methods []*Function) {
183 for _, file := range stct.Package().Files() {

Callers 2

TestInterfaceLookupFunction · 0.45
TestAliasLookupFunction · 0.45

Calls 2

MethodsMethod · 0.95
NameMethod · 0.65

Tested by 2

TestInterfaceLookupFunction · 0.36
TestAliasLookupFunction · 0.36