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

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 1 packages (graph). Updated 2019-12-12. Refresh now. Tools for package owners.