| // Code generated by go generate. DO NOT EDIT. |
| //go:generate go run ../gen/gen.go |
| "cuelang.org/go/internal/core/adt" |
| "cuelang.org/go/pkg/internal" |
| internal.Register("struct", pkg) |
| var _ = adt.TopKind // in case the adt package isn't used |
| var pkg = &internal.Package{ |
| Native: []*internal.Builtin{{ |
| Params: []adt.Kind{adt.StructKind, adt.IntKind}, |
| Func: func(c *internal.CallCtxt) { |
| object, n := c.Struct(0), c.Int(1) |
| c.Ret, c.Err = MinFields(object, n) |
| Params: []adt.Kind{adt.StructKind, adt.IntKind}, |
| Func: func(c *internal.CallCtxt) { |
| object, n := c.Struct(0), c.Int(1) |
| c.Ret, c.Err = MaxFields(object, n) |