transittime

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(appCtx appcontext.AppContext, xlsxDataSheets []XlsxDataSheetInfo, params ParamConfig) error

Parse parses the XLSX file

Types

type ParamConfig

type ParamConfig struct {
	ProcessAll    bool
	ShowOutput    bool
	XlsxFilename  string
	XlsxSheets    []string
	SaveToFile    bool
	RunTime       time.Time
	XlsxFile      *xlsx.File
	RunVerify     bool
	RunImport     bool
	UseTempTables bool
	DropIfExists  bool
}

ParamConfig config for the transit time parser program

type XlsxDataSheetInfo

type XlsxDataSheetInfo struct {
	Description    *string
	ProcessMethods []xlsxProcessInfo
	// contains filtered or unexported fields
}

XlsxDataSheetInfo describes the excel sheet info

func InitDataSheetInfo

func InitDataSheetInfo() []XlsxDataSheetInfo

InitDataSheetInfo : When adding new functions for parsing sheets, must add new XlsxDataSheetInfo defining the parse function

The index MUST match the sheet that is being processed. Refer to file comments or XLSX to determine the correct index to add.

Jump to

Keyboard shortcuts

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