reflect.Type.NumOut (method)
14 uses
reflect (current package)
type.go#L222: NumOut() int
github.com/go-pg/pg/v10/orm
model_func.go#L33: if fnt.NumOut() != 1 {
model_func.go#L34: panic(fmt.Errorf("ForEach must return 1 error value, got %d", fnt.NumOut()))
table.go#L529: if m.Type.NumOut() != 1 {
github.com/google/go-cmp/cmp/internal/function
func.go#L42: ni, no := t.NumIn(), t.NumOut()
github.com/google/go-cmp/cmp/internal/value
name.go#L78: switch t.NumOut() {
name.go#L86: for i := 0; i < t.NumOut(); i++ {
go.uber.org/mock/gomock
call.go#L72: rets := make([]any, methodType.NumOut())
call.go#L73: for i := 0; i < methodType.NumOut(); i++ {
call.go#L192: if len(rets) != mt.NumOut() {
call.go#L194: c.receiver, c.method, len(rets), mt.NumOut(), c.origin)
testing
fuzz.go#L230: if fnType.NumOut() != 0 {
text/template
funcs.go#L114: switch numOut := typ.NumOut(); {
funcs.go#L122: return fmt.Errorf("function %s has %d return values; should be 1 or 2", name, typ.NumOut())