fields

package
v0.0.0-...-08474b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	FieldName    FieldName `json:"fieldName"`
	FieldRefName FieldName `json:"fieldRefName"`
	FieldType    FieldType `json:"fieldType"`
	SubField     *Field    `json:"subField"`
	Properties   []*Field  `json:"properties"`
	IsProperty   bool      `json:"isProperty"`
	Description  string    `json:"description"`
}

func (*Field) ToArray

func (f *Field) ToArray() (arr *FieldArray)

type FieldArray

type FieldArray []Field

func (*FieldArray) Add

func (f *FieldArray) Add(field Field)

type FieldName

type FieldName string

type FieldType

type FieldType string
const (
	Array  FieldType = "array"
	Object FieldType = "object"
)

type Fields

type Fields map[FieldName]FieldType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL