- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsVariadic (0.09 sec)
-
src/reflect/type.go
// // t.NumIn() == 2 // t.In(0) is the reflect.Type for "int" // t.In(1) is the reflect.Type for "[]float64" // t.IsVariadic() == true // // IsVariadic panics if the type's Kind is not Func. IsVariadic() bool // Elem returns a type's element type. // It panics if the type's Kind is not Array, Chan, Map, Pointer, or Slice. Elem() Type // Field returns a struct type's i'th field.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
func (t *Type) NumRecvs() int { return len(t.Recvs()) } func (t *Type) NumParams() int { return len(t.Params()) } func (t *Type) NumResults() int { return len(t.Results()) } // IsVariadic reports whether function type t is variadic. func (t *Type) IsVariadic() bool { n := t.NumParams() return n > 0 && t.Param(n-1).IsDDD() } // Recv returns the receiver of function type t, if any. func (t *Type) Recv() *Field {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0)