go: cuelang.org/go/pkg/struct Index | Files

package structs

import "cuelang.org/go/pkg/struct"

Package struct defines utilities for struct types.

Index

Package Files

pkg.go struct.go

func MaxFields Uses

func MaxFields(object *cue.Struct, n int) (bool, error)

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 Uses

func MinFields(object *cue.Struct, n int) (bool, error)

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.

Package structs imports 3 packages (graph) and is imported by 1 packages. Updated 2020-11-30. Refresh now. Tools for package owners.