MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / Method

Method Method

types/interface.go:91–91  ·  view source on GitHub ↗

Method returns the i'th method of interface t for 0 <= i < t.NumMethods(). The methods are ordered by their unique Id.

(i int)

Source from the content-addressed store, hash-verified

89// Method returns the i'th method of interface t for 0 <= i < t.NumMethods().
90// The methods are ordered by their unique Id.
91func (t *Interface) Method(i int) *Func { return t.typeSet().Method(i) }
92
93// Empty reports whether t is the empty interface.
94func (t *Interface) Empty() bool { return t.typeSet().IsAll() }

Callers

nothing calls this directly

Calls 2

typeSetMethod · 0.95
MethodMethod · 0.65

Tested by

no test coverage detected