package xlsx // xlsxWorksheet directly maps the worksheet element in the namespace // http://schemas.openxmlformats.org/spreadsheetml/2006/main - // currently I have not checked it for completeness - it does as much // as I need. type xlsxWorksheet struct { Dimension xlsxDimension `xml:"dimension"` SheetData xlsxSheetData `xml:"sheetData"` } // xlsxDimension directly maps the dimension element in the namespace // http://schemas.openxmlformats.org/spreadsheetml/2006/main - // currently I have not checked it for completeness - it does as much // as I need. type xlsxDimension struct { Ref string `xml:"ref,attr"` } // xlsxSheetData directly maps the sheetData element in the namespace // http://schemas.openxmlformats.org/spreadsheetml/2006/main - // currently I have not checked it for completeness - it does as much // as I need. type xlsxSheetData struct { Row []xlsxRow `xml:"row"` } // xlsxRow directly maps the row element in the namespace // http://schemas.openxmlformats.org/spreadsheetml/2006/main - // currently I have not checked it for completeness - it does as much // as I need. type xlsxRow struct { R int `xml:"r,attr"` Spans string `xml:"spans,attr"` C []xlsxC `xml:"c"` } // xlsxC directly maps the c element in the namespace // http://schemas.openxmlformats.org/spreadsheetml/2006/main - // currently I have not checked it for completeness - it does as much // as I need. type xlsxC struct { R string `xml:"r,attr"` S int `xml:"s,attr"` T string `xml:"t,attr"` V string `xml:"v"` } // get cell func (sh *Sheet) Cell(row, col int) *Cell { if len(sh.Rows) > row && sh.Rows[row] != nil && len(sh.Rows[row].Cells) > col { return sh.Rows[row].Cells[col] } return new(Cell) }