diff options
| author | Ri Xu <xuri.me@gmail.com> | 2016-12-31 23:47:30 +0800 |
|---|---|---|
| committer | Ri Xu <xuri.me@gmail.com> | 2016-12-31 23:47:30 +0800 |
| commit | 9e8d36ce59381eadb934585a179c4c6d7f871b35 (patch) | |
| tree | 94d35ae9a09527b0cbc4be8a90850423bf61d4a6 /excelize.go | |
| parent | f958f05a3bf6f9fdc7f76539d9a3b24f49cc2694 (diff) | |
- Performance improvement, remove `replaceRelationshipsID` and `workBookCompatibility` functions;
- New functions `GetActiveSheetIndex`, `GetSheetName` and `GetSheetMap` added.
Diffstat (limited to 'excelize.go')
| -rw-r--r-- | excelize.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/excelize.go b/excelize.go index af076fb..61391dc 100644 --- a/excelize.go +++ b/excelize.go @@ -82,7 +82,7 @@ func (f *File) SetCellInt(sheet string, axis string, value int) { xlsx.SheetData.Row[xAxis].C[yAxis].V = strconv.Itoa(value) output, _ := xml.Marshal(xlsx) - f.saveFileList(name, replaceRelationshipsID(replaceWorkSheetsRelationshipsNameSpace(string(output)))) + f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpace(string(output))) } // SetCellStr provide function to set string type value of a cell. @@ -107,7 +107,7 @@ func (f *File) SetCellStr(sheet string, axis string, value string) { xlsx.SheetData.Row[xAxis].C[yAxis].V = value output, _ := xml.Marshal(xlsx) - f.saveFileList(name, replaceRelationshipsID(replaceWorkSheetsRelationshipsNameSpace(string(output)))) + f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpace(string(output))) } // Completion column element tags of XML in a sheet. @@ -277,6 +277,6 @@ func (f *File) UpdateLinkedValue() { } } output, _ := xml.Marshal(xlsx) - f.saveFileList(name, replaceRelationshipsID(replaceWorkSheetsRelationshipsNameSpace(string(output)))) + f.saveFileList(name, replaceWorkSheetsRelationshipsNameSpace(string(output))) } } |
