• R/O
  • HTTP
  • SSH
  • HTTPS

excelize: 提交

Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets


Commit MetaInfo

修订版dc8210d4a7d18f6425f6f18dc383b26778883715 (tree)
时间2019-06-30 20:50:47
作者xuri <xuri.me@gmai...>
Commiterxuri

Log Message

Update GoDoc and typo fixed

更改概述

差异

--- a/docProps.go
+++ b/docProps.go
@@ -31,7 +31,7 @@ import (
3131 // Description | An explanation of the content of the resource.
3232 // |
3333 // LastModifiedBy | The user who performed the last modification. The identification is
34-// | environment-specific.
34+// | environment-specific.
3535 // |
3636 // Language | The language of the intellectual content of the resource.
3737 // |
@@ -40,7 +40,7 @@ import (
4040 // Revision | The topic of the content of the resource.
4141 // |
4242 // ContentStatus | The status of the content. For example: Values might include "Draft",
43-// | "Reviewed", and "Final"
43+// | "Reviewed" and "Final"
4444 // |
4545 // Category | A categorization of the content of this package.
4646 // |
--- a/sheet.go
+++ b/sheet.go
@@ -1221,7 +1221,7 @@ func (f *File) GetPageLayout(sheet string, opts ...PageLayoutOptionPtr) error {
12211221 }
12221222
12231223 // SetDefinedName provides a function to set the defined names of the workbook
1224-// or worksheet. If not specified scopr, the default scope is workbook.
1224+// or worksheet. If not specified scope, the default scope is workbook.
12251225 // For example:
12261226 //
12271227 // f.SetDefinedName(&excelize.DefinedName{
--- a/styles.go
+++ b/styles.go
@@ -1946,13 +1946,13 @@ func (f *File) NewConditionalStyle(style string) (int, error) {
19461946 }
19471947
19481948 // GetDefaultFont provides the default font name currently set in the workbook
1949-// Documents generated by excelize start with Calibri
1949+// Documents generated by excelize start with Calibri.
19501950 func (f *File) GetDefaultFont() string {
19511951 font := f.readDefaultFont()
19521952 return font.Name.Val
19531953 }
19541954
1955-// SetDefaultFont changes the default font in the workbook
1955+// SetDefaultFont changes the default font in the workbook.
19561956 func (f *File) SetDefaultFont(fontName string) {
19571957 font := f.readDefaultFont()
19581958 font.Name.Val = fontName
@@ -1962,7 +1962,7 @@ func (f *File) SetDefaultFont(fontName string) {
19621962 s.CellStyles.CellStyle[0].CustomBuiltIn = &custom
19631963 }
19641964
1965-// readDefaultFont provides an unmarshalled font value
1965+// readDefaultFont provides an unmarshalled font value.
19661966 func (f *File) readDefaultFont() *xlsxFont {
19671967 s := f.stylesReader()
19681968 return s.Fonts.Font[0]
Show on old repository browser