data

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 9 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 {
	Name        string `json:"name"`
	RowID       int    `json:"rowID,omitempty"`
	Type        string `json:"type"`
	Key         string `json:"key,omitempty"`
	KeyID       string `json:"key_id,omitempty"`
	KeyOffset   int    `json:"key_offset,omitempty"`
	Enum        any    `json:"enum,omitempty"`
	Unique      bool   `json:"unique,omitempty"`
	FilePath    bool   `json:"file_path,omitempty"`
	FileExt     any    `json:"file_ext,omitempty"`
	Display     any    `json:"display,omitempty"`
	DisplayType string `json:"display_type,omitempty"`
	Description string `json:"description,omitempty"`
}

func (*Field) IsUnknown

func (f *Field) IsUnknown() bool

func (*Field) UnknownIdx

func (f *Field) UnknownIdx() int

type Fields

type Fields []*Field

type File

type File struct {
	Filename string  `json:"filename"`
	Fields   Fields  `json:"header"`
	Data     [][]any `json:"data"`
}

func (*File) String

func (f *File) String() string

func (*File) ToModel

func (f *File) ToModel(tableIdx int, groups model.Groups) (*model.Model, error)

type Files added in v0.5.1

type Files []*File

func (Files) Headers added in v0.5.1

func (f Files) Headers() []map[string]any

Jump to

Keyboard shortcuts

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