- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 73 for FuncType (0.15 sec)
-
pkg/printers/tablegenerator.go
} funcType := printFunc.Type() if funcType.NumIn() != 2 || funcType.NumOut() != 2 { return fmt.Errorf("invalid print handler." + "Must accept 2 parameters and return 2 value") } if funcType.In(1) != reflect.TypeOf((*GenerateOptions)(nil)).Elem() || funcType.Out(0) != reflect.TypeOf((*[]metav1.TableRow)(nil)).Elem() || funcType.Out(1) != reflect.TypeOf((*error)(nil)).Elem() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 5.9K bytes - Viewed (0) -
src/internal/abi/type.go
if t.Kind() != Array { return nil } return (*ArrayType)(unsafe.Pointer(t)) } // FuncType returns t cast to a *FuncType, or nil if its tag does not match. func (t *Type) FuncType() *FuncType { if t.Kind() != Func { return nil } return (*FuncType)(unsafe.Pointer(t)) } // InterfaceType returns t cast to a *InterfaceType, or nil if its tag does not match.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:09:59 UTC 2024 - 21.8K bytes - Viewed (0) -
src/go/types/exprstring.go
} buf.WriteByte(']') WriteExpr(buf, x.Elt) case *ast.StructType: buf.WriteString("struct{") writeFieldList(buf, x.Fields.List, "; ", false) buf.WriteByte('}') case *ast.FuncType: buf.WriteString("func") writeSigExpr(buf, x) case *ast.InterfaceType: buf.WriteString("interface{") writeFieldList(buf, x.Methods.List, "; ", true) buf.WriteByte('}')
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 19:31:44 UTC 2024 - 4.8K bytes - Viewed (0) -
src/internal/reflectlite/type.go
} func (t rtype) NumIn() int { tt := t.Type.FuncType() if tt == nil { panic("reflect: NumIn of non-func type") } return int(tt.InCount) } func (t rtype) NumOut() int { tt := t.Type.FuncType() if tt == nil { panic("reflect: NumOut of non-func type") } return tt.NumOut() } func (t rtype) Out(i int) Type { tt := t.Type.FuncType() if tt == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 17:01:54 UTC 2024 - 16.2K bytes - Viewed (0) -
src/cmd/cgo/ast_go1.go
func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) { error_(token.NoPos, "unexpected type %T in walk", x) panic("unexpected type") } func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList { return nil } func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList { return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 30 21:45:10 UTC 2022 - 578 bytes - Viewed (0) -
src/cmd/cgo/ast_go118.go
panic("unexpected type") case *ast.IndexListExpr: f.walk(&n.X, ctxExpr, visit) f.walk(n.Indices, ctxExpr, visit) } } func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList { return n.TypeParams } func typeSpecTypeParams(n *ast.TypeSpec) *ast.FieldList { return n.TypeParams
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 30 21:45:10 UTC 2022 - 730 bytes - Viewed (0) -
src/reflect/export_test.go
var ft *abi.Type var abid abiDesc if rcvr != nil { ft, _, abid = funcLayout((*funcType)(unsafe.Pointer(t.common())), rcvr.common()) } else { ft, _, abid = funcLayout((*funcType)(unsafe.Pointer(t.(*rtype))), nil) } // Extract size information. argSize = abid.stackCallArgsSize retOffset = abid.retOffset frametype = toType(ft)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:10:48 UTC 2024 - 3.8K bytes - Viewed (0) -
src/reflect/makefunc.go
// The first three words of this type must be kept in sync with // methodValue and runtime.reflectMethodValue. // Any changes should be reflected in all three. type makeFuncImpl struct { makeFuncCtxt ftyp *funcType fn func([]Value) []Value } // MakeFunc returns a new function of the given [Type] // that wraps the function fn. When called, that new function // does the following: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:20:05 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
// func Receiver Name Type FuncDecl struct { Pragma Pragma Recv *Field // nil means regular function Name *Name TParamList []*Field // nil means no type parameters Type *FuncType Body *BlockStmt // nil means no body (forward declaration) decl } ) type decl struct{ node } func (*decl) aDecl() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/positions.go
continue } return n.Pos() // types // case *ArrayType: // case *SliceType: // case *DotsType: // case *StructType: // case *Field: // case *InterfaceType: // case *FuncType: // case *MapType: // case *ChanType: // statements // case *EmptyStmt: // case *LabeledStmt: // case *BlockStmt: // case *ExprStmt: case *SendStmt: m = n.Chan // case *DeclStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 17:49:19 UTC 2024 - 6.5K bytes - Viewed (0)