From 2e8fa2d39c8771c6f79c59e708f2b443302ade7f Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Mon, 12 Sep 2016 17:37:06 +0800 Subject: Use conjunction with strings.Map to split Axis and update godoc. --- sheet.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sheet.go') 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 { -- cgit v1.2.1