package structs
import "cuelang.org/go/pkg/struct"
Package struct defines utilities for struct types.
Index ¶
- func MaxFields(object *cue.Struct, n int) (bool, error)
- func MinFields(object *cue.Struct, n int) (bool, error)
Functions ¶
func MaxFields ¶
MaxFields validates the maximum number of fields that are part of a struct.
Only fields that are part of the data model count. This excludes hidden fields, optional fields, and definitions.
func MinFields ¶
MinFields validates the minimum number of fields that are part of a struct.
Only fields that are part of the data model count. This excludes hidden fields, optional fields, and definitions.
Source Files ¶
pkg.go struct.go
- Version
- v0.3.0-alpha2
- Published
- Sep 16, 2020
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 41 minutes ago –
Tools for package owners.