Documentation ¶
Index ¶
- func ParseFormula(formula string) []efp.Token
- type Cell
- type CellMap
- type ExcelCompiler
- func (ec *ExcelCompiler) BuildMap(sheet string, cellref string) *Cell
- func (ec *ExcelCompiler) Compile(reference string) *CellMap
- func (ec *ExcelCompiler) GetCell(sheet string, cellref string) *Cell
- func (ec *ExcelCompiler) LoadFromFile(filepath string) error
- func (ec *ExcelCompiler) RefSplitter(ref string) (string, string, error)
- type ExcelRunner
- type UnknownFormula
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cell ¶
type Cell struct { Reference string Sheet string Type excelize.CellType Formula string Value string //Change this to formula struct }
Cell representation
type CellMap ¶
type CellMap struct { Cells []Cell Edges map[Cell][]Cell StartingCell *Cell // contains filtered or unexported fields }
CellMap collection of parsed Cells
type ExcelCompiler ¶
type ExcelCompiler struct { File *excelize.File CellMap *CellMap }
ExcelCompiler compiles the excel file into golang structs
func NewExcelCompiler ¶
func NewExcelCompiler() *ExcelCompiler
NewExcelCompiler is a constructor method that builds ExcelCompiler
func (*ExcelCompiler) BuildMap ¶
func (ec *ExcelCompiler) BuildMap(sheet string, cellref string) *Cell
BuildMap recursivley builds cell map
func (*ExcelCompiler) Compile ¶
func (ec *ExcelCompiler) Compile(reference string) *CellMap
Compile finds a cell reference as a starting point and compiles it recursivley
func (*ExcelCompiler) GetCell ¶
func (ec *ExcelCompiler) GetCell(sheet string, cellref string) *Cell
GetCell returns cell
func (*ExcelCompiler) LoadFromFile ¶
func (ec *ExcelCompiler) LoadFromFile(filepath string) error
LoadFromFile loads excel file from the filesystem
func (*ExcelCompiler) RefSplitter ¶
func (ec *ExcelCompiler) RefSplitter(ref string) (string, string, error)
RefSplitter splits cell reference
type ExcelRunner ¶
type ExcelRunner struct {
CellMap *CellMap
}
ExcelRunner runs gcl files
func NewExcelRunner ¶
func NewExcelRunner() *ExcelRunner
NewExcelRunner is a constructor method that builds ExcelRunner
func (*ExcelRunner) LoadFromFile ¶
func (er *ExcelRunner) LoadFromFile(filePath string) error
LoadFromFile loads excel file from the filesystem
type UnknownFormula ¶
type UnknownFormula struct{}
UnknownFormula error for when unkown formulas are trying to be created
func (*UnknownFormula) Error ¶
func (m *UnknownFormula) Error() string
Click to show internal directories.
Click to hide internal directories.