- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for StructType (0.26 sec)
-
common-protos/k8s.io/api/rbac/v1/generated.proto
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; // Items is a list of Roles repeated Role items = 2; } // RoleRef contains information that points to the role being used // +structType=atomic message RoleRef { // APIGroup is the group for the resource being referenced optional string apiGroup = 1; // Kind is the type of resource being referenced optional string kind = 2;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 7.6K bytes - Viewed (0) -
src/net/http/httptrace/trace.go
func (t *ClientTrace) compose(old *ClientTrace) { if old == nil { return } tv := reflect.ValueOf(t).Elem() ov := reflect.ValueOf(old).Elem() structType := tv.Type() for i := 0; i < structType.NumField(); i++ { tf := tv.Field(i) hookType := tf.Type() if hookType.Kind() != reflect.Func { continue } of := ov.Field(i) if of.IsNil() { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 8.1K bytes - Viewed (0) -
src/go/types/struct.go
// Implementation func (s *Struct) markComplete() { if s.fields == nil { s.fields = make([]*Var, 0) } } func (check *Checker) structType(styp *Struct, e *ast.StructType) { list := e.Fields if list == nil { styp.markComplete() return } // struct fields and tags var fields []*Var var tags []string // for double-declaration checks
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/structtag/structtag.go
} func run(pass *analysis.Pass) (interface{}, error) { inspect := pass.ResultOf[inspect.Analyzer].(*inspector.Inspector) nodeFilter := []ast.Node{ (*ast.StructType)(nil), } inspect.Preorder(nodeFilter, func(n ast.Node) { styp, ok := pass.TypesInfo.Types[n.(*ast.StructType)].Type.(*types.Struct) // Type information may be incomplete. if !ok { return } var seen namesSeen for i := 0; i < styp.NumFields(); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 8.8K bytes - Viewed (0) -
src/debug/dwarf/type_test.go
break } if e.Tag == TagTypedef { typ, err := d.Type(e.Offset) if err != nil { t.Fatal("d.Type:", err) } t1 := typ.(*TypedefType) var typstr string if ts, ok := t1.Type.(*StructType); ok { typstr = ts.Defn() } else { typstr = t1.Type.String() } if want, ok := testcases[t1.Name]; ok { if seen[t1.Name] { t.Errorf("multiple definitions for %s", t1.Name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 15:49:05 UTC 2022 - 8.8K bytes - Viewed (0) -
src/go/types/exprstring.go
WriteExpr(buf, x.Y) case *ast.ArrayType: buf.WriteByte('[') if x.Len != nil { WriteExpr(buf, x.Len) } 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:
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/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
case *ast.SelectorExpr: return 1 << nSelectorExpr case *ast.SendStmt: return 1 << nSendStmt case *ast.SliceExpr: return 1 << nSliceExpr case *ast.StarExpr: return 1 << nStarExpr case *ast.StructType: return 1 << nStructType case *ast.SwitchStmt: return 1 << nSwitchStmt case *ast.TypeAssertExpr: return 1 << nTypeAssertExpr case *ast.TypeSpec: return 1 << nTypeSpec
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 4.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/mkbuiltin.go
case *ast.MapType: return fmt.Sprintf("types.NewMap(%s, %s)", i.subtype(t.Key), i.subtype(t.Value)) case *ast.StarExpr: return fmt.Sprintf("types.NewPtr(%s)", i.subtype(t.X)) case *ast.StructType: return fmt.Sprintf("types.NewStruct(%s)", i.fields(t.Fields, true)) default: log.Fatalf("unhandled type: %#v", t) panic("unreachable") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/walk.go
// types case *ArrayType: if n.Len != nil { w.node(n.Len) } w.node(n.Elem) case *SliceType: w.node(n.Elem) case *DotsType: w.node(n.Elem) case *StructType: w.fieldList(n.FieldList) for _, t := range n.TagList { if t != nil { w.node(t) } } case *Field: if n.Name != nil { w.node(n.Name) } w.node(n.Type)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:55:04 UTC 2023 - 5.7K bytes - Viewed (0) -
src/go/ast/walk.go
Walk(v, n.Y) case *KeyValueExpr: Walk(v, n.Key) Walk(v, n.Value) // Types case *ArrayType: if n.Len != nil { Walk(v, n.Len) } Walk(v, n.Elt) case *StructType: Walk(v, n.Fields) case *FuncType: if n.TypeParams != nil { Walk(v, n.TypeParams) } if n.Params != nil { Walk(v, n.Params) } if n.Results != nil { Walk(v, n.Results)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:34:10 UTC 2024 - 6.4K bytes - Viewed (0)