diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-03-06 12:05:41 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-03-06 12:05:41 +0800 |
commit | 1f73f08185e664d6914c8eb849a9797b26067628 (patch) | |
tree | 71ebce585a03f13e5b68c96a12d0aa06a7756a2c /cell.go | |
parent | 48722e6482d97e742755002061bf1c7b042bfb44 (diff) |
- New feature: border setting support (Related issue #21);
- Function parameter code is simplified;
- Fix element `Tint` value parsing error in worksheet;
- Update go test
Diffstat (limited to 'cell.go')
-rw-r--r-- | cell.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,7 +8,7 @@ import ( // GetCellValue provides function to get value from cell by given sheet index // and axis in XLSX file. -func (f *File) GetCellValue(sheet string, axis string) string { +func (f *File) GetCellValue(sheet, axis string) string { axis = strings.ToUpper(axis) var xlsx xlsxWorksheet name := "xl/worksheets/" + strings.ToLower(sheet) + ".xml" @@ -59,7 +59,7 @@ func (f *File) GetCellValue(sheet string, axis string) string { // GetCellFormula provides function to get formula from cell by given sheet // index and axis in XLSX file. -func (f *File) GetCellFormula(sheet string, axis string) string { +func (f *File) GetCellFormula(sheet, axis string) string { axis = strings.ToUpper(axis) var xlsx xlsxWorksheet name := "xl/worksheets/" + strings.ToLower(sheet) + ".xml" @@ -182,8 +182,8 @@ func (f *File) SetCellHyperLink(sheet, axis, link string) { f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpace(string(output))) } -// MergeCell provides function to merge cells by given axis and sheet name. -// For example create a merged cell of D3:E9 on Sheet1: +// MergeCell provides function to merge cells by given coordinate area and sheet +// name. For example create a merged cell of D3:E9 on Sheet1: // // xlsx.MergeCell("sheet1", "D3", "E9") // |