Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnData ¶ added in v0.7.0
type ColumnData struct { Name string ColumnType ColumnType }
type ColumnType ¶
type ColumnType int32
const ( ColumnTypeString ColumnType = iota + 1 ColumnTypeNumber ColumnTypeBoolean )
type DataSheet ¶
type DataSheet struct { Type string UniqueId string Columns []ColumnData Rows [][]string }
func Parse ¶
func Parse(dataSheetFile *DataSheetFile) (*DataSheet, error)
func (*DataSheet) GetCellValueByColumnName ¶ added in v0.10.0
func (*DataSheet) GetColumnIndexes ¶ added in v0.3.3
type DataSheetFile ¶
type DataSheetFile struct {
// contains filtered or unexported fields
}
func FindAll ¶
func FindAll(root string) ([]*DataSheetFile, error)
func NewDataSheet ¶
func NewDataSheet(path string, relPath string) *DataSheetFile
func (*DataSheetFile) GetData ¶ added in v0.7.2
func (dataSheetFile *DataSheetFile) GetData() (*DataSheet, error)
func (*DataSheetFile) GetMeta ¶ added in v0.7.2
func (dataSheetFile *DataSheetFile) GetMeta() (*Meta, error)
func (DataSheetFile) GetPath ¶
func (dataSheetFile DataSheetFile) GetPath() string
func (DataSheetFile) GetRelPath ¶ added in v0.7.2
func (dataSheetFile DataSheetFile) GetRelPath() string
type Header ¶ added in v0.7.0
type Header struct { Signature []byte `yaml:",flow"` UniqueIdCrc32 uint32 UniqueIdOffset uint32 TypeCrc32 uint32 TypeOffset uint32 Field6 []byte `yaml:",flow"` BodyLength uint32 Field8 []byte `yaml:"-"` Field9 []byte `yaml:"-"` Field10 []byte `yaml:"-"` Field11 []byte `yaml:"-"` Field12 []byte `yaml:"-"` Field13 []byte `yaml:"-"` Field14 []byte `yaml:"-"` BodyOffset uint32 }
type Meta ¶ added in v0.3.3
type Meta struct { Header *Header Field2 []byte `yaml:",flow"` Field3 []byte `yaml:"-"` ColumnCount uint32 RowCount uint32 Field6 []byte `yaml:"-"` Field7 []byte `yaml:"-"` Field8 []byte `yaml:"-"` Field9 []byte `yaml:"-"` ColumnsIndex []*Column RowsIndex []*Row WorksheetName string UniqueId string Type string }
type Store ¶ added in v0.5.0
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetAll ¶ added in v0.7.2
func (store *Store) GetAll() []*DataSheetFile
func (*Store) GetByType ¶ added in v0.7.2
func (store *Store) GetByType(typ string) ([]*DataSheetFile, error)
func (*Store) GetByUniqueId ¶ added in v0.7.2
func (store *Store) GetByUniqueId(typ string, uniqueId string) (*DataSheetFile, error)
Click to show internal directories.
Click to hide internal directories.