reflect.Type.NumMethod (method)
13 uses
reflect (current package)
type.go#L76: NumMethod() int
value.go#L3386: if typ.NumMethod() == 0 {
encoding/asn1
asn1.go#L688: if ifaceType := fieldType; ifaceType.Kind() == reflect.Interface && ifaceType.NumMethod() == 0 {
marshal.go#L584: if v.Kind() == reflect.Interface && v.Type().NumMethod() == 0 {
encoding/json
decode.go#L477: if v.Type().NumMethod() > 0 && v.CanInterface() {
github.com/go-pg/pg/v10/orm
table.go#L521: for i := 0; i < typ.NumMethod(); i++ {
github.com/golang/mock/gomock
controller.go#L193: for i := 0; i < recv.Type().NumMethod(); i++ {
github.com/google/go-cmp/cmp
options.go#L166: if ti := v.Type().In(0); ti.Kind() != reflect.Interface || ti.NumMethod() > 0 {
options.go#L291: if ti := v.Type().In(0); ti.Kind() != reflect.Interface || ti.NumMethod() > 0 {
options.go#L350: if ti := v.Type().In(0); ti.Kind() != reflect.Interface || ti.NumMethod() > 0 {
github.com/google/go-cmp/cmp/internal/value
name.go#L140: for i := 0; i < t.NumMethod(); i++ {
text/template
exec.go#L459: if value.Kind() == reflect.Interface && value.Type().NumMethod() == 0 {
exec.go#L876: if typ.NumMethod() == 0 {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)