- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NumIn (0.22 sec)
-
src/reflect/all_test.go
typ := TypeOf(f) if typ.NumIn() == 2 && typ.In(0) == TypeOf(int(0)) { sl := typ.In(1) if sl.Kind() == Slice { if sl.Elem() == TypeOf(0.0) { // ok return } } } // Failed t.Errorf("want NumIn() = 2, In(0) = int, In(1) = []float64") s := fmt.Sprintf("have NumIn() = %d", typ.NumIn()) for i := 0; i < typ.NumIn(); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
src/reflect/value.go
fn = *(*unsafe.Pointer)(v.ptr) } else { fn = v.ptr } if fn == nil { panic("reflect.Value.Call: call of nil function") } isSlice := op == "CallSlice" n := t.NumIn() isVariadic := t.IsVariadic() if isSlice { if !isVariadic { panic("reflect: CallSlice of non-variadic function") } if len(in) < n { panic("reflect: CallSlice with too few input arguments")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0)