data

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataFile

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

func (*DataFile) String

func (d *DataFile) String() string

func (*DataFile) ToModel

func (d *DataFile) ToModel() (*model.Model, error)

type DataFiles

type DataFiles []*DataFile

func (DataFiles) Headers

func (d DataFiles) Headers() []map[string]any

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

Jump to

Keyboard shortcuts

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