Documentation ¶
Index ¶
Constants ¶
View Source
const SHEETS_MIME_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadFile(config DownloadConfig) error
func GetDocument ¶
func GetDocument(file *excelize.File, config ParseConfig) models.Document
Types ¶
type DownloadConfig ¶
type GlobalParseConfig ¶
type GlobalParseConfig struct { AddressTable string `toml:"address_table"` BackendKey string `toml:"backend_key"` BLCUAddressKey string `toml:"blcu_address_key"` UnitsTable string `toml:"units_table"` PortsTable string `toml:"ports_table"` BoardIdsTable string `toml:"board_ids_table"` MessageIdsTable string `toml:"message_ids_table"` }
type ParseConfig ¶
type ParseConfig struct { GlobalSheetPrefix string `toml:"global_sheet_prefix"` BoardSheetPrefix string `toml:"board_sheet_prefix"` TablePrefix string `toml:"table_prefix"` Global GlobalParseConfig `toml:"global"` }
Click to show internal directories.
Click to hide internal directories.