reflect.Type.NumOut (method)

17 uses

	reflect (current package)
		type.go#L212: 	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/golang/mock/gomock
		call.go#L72: 		rets := make([]interface{}, methodType.NumOut())
		call.go#L73: 		for i := 0; i < methodType.NumOut(); i++ {
		call.go#L178: 	if len(rets) != mt.NumOut() {
		call.go#L180: 			c.receiver, c.method, len(rets), mt.NumOut(), c.origin)

	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++ {

	testing
		fuzz.go#L230: 	if fnType.NumOut() != 0 {

	text/template
		exec.go#L717: 		s.errorf("can't call method/function %q with %d results", name, typ.NumOut())
		funcs.go#L98: 			panic(fmt.Errorf("can't install method/function %q with %d results", name, v.Type().NumOut()))
		funcs.go#L116: 	case typ.NumOut() == 1:
		funcs.go#L118: 	case typ.NumOut() == 2 && typ.Out(1) == errorType:
		funcs.go#L325: 		return reflect.Value{}, fmt.Errorf("function called with %d args; should be 1 or 2", typ.NumOut())