data

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TypeForString added in v1.7.8

func TypeForString(t string, ex []any) (*types.Wrapped, []string, error)

Types

type Field

type Field struct {
	Name        string `json:"name"`
	RowID       int    `json:"rowID,omitzero"`
	Type        string `json:"type"`
	Key         string `json:"key,omitzero"`
	KeyID       string `json:"key_id,omitzero"`
	KeyOffset   int    `json:"key_offset,omitzero"`
	Enum        any    `json:"enum,omitzero"`
	Unique      bool   `json:"unique,omitzero"`
	FilePath    bool   `json:"file_path,omitzero"`
	FileExt     any    `json:"file_ext,omitzero"`
	Display     any    `json:"display,omitzero"`
	DisplayType string `json:"display_type,omitzero"`
	Description string `json:"description,omitzero"`
}

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