summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2016-09-12 17:37:06 +0800
committerRi Xu <xuri.me@gmail.com>2016-09-12 17:37:06 +0800
commit2e8fa2d39c8771c6f79c59e708f2b443302ade7f (patch)
tree7042d2231488b28c4b92468bcef795e89d6d5cf3 /sheet.go
parentcbfd6577536304f9b0b93edb7748475d8266fe19 (diff)
Use conjunction with strings.Map to split Axis and update godoc.
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/sheet.go b/sheet.go
index 0728567..011466d 100644
--- a/sheet.go
+++ b/sheet.go
@@ -9,8 +9,8 @@ import (
)
// NewSheet provice function to greate a new sheet by given index, when
-// creating a new XLSX file, the default sheet will be create, when you
-// create a new file, you need to ensure that the index is continuous.
+// creating a new XLSX file, the default sheet will be create, when you
+// create a new file, you need to ensure that the index is continuous.
func (f *File) NewSheet(index int, name string) {
// Update docProps/app.xml
f.setAppXML()
@@ -30,7 +30,7 @@ func (f *File) setContentTypes(index int) {
xml.Unmarshal([]byte(f.readXML(`[Content_Types].xml`)), &content)
content.Overrides = append(content.Overrides, xlsxOverride{
PartName: `/xl/worksheets/sheet` + strconv.Itoa(index) + `.xml`,
- ContentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",
+ ContentType: `application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml`,
})
output, err := xml.Marshal(content)
if err != nil {
@@ -94,7 +94,7 @@ func (f *File) addXlsxWorkbookRels(sheet int) {
content.Relationships = append(content.Relationships, xlsxWorkbookRelation{
ID: ID.String(),
Target: target.String(),
- Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",
+ Type: `http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`,
})
output, err := xml.Marshal(content)
if err != nil {