Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
修订版 | dc8210d4a7d18f6425f6f18dc383b26778883715 (tree) |
---|---|
时间 | 2019-06-30 20:50:47 |
作者 | ![]() |
Commiter | xuri |
Update GoDoc and typo fixed
@@ -31,7 +31,7 @@ import ( | ||
31 | 31 | // Description | An explanation of the content of the resource. |
32 | 32 | // | |
33 | 33 | // LastModifiedBy | The user who performed the last modification. The identification is |
34 | -// | environment-specific. | |
34 | +// | environment-specific. | |
35 | 35 | // | |
36 | 36 | // Language | The language of the intellectual content of the resource. |
37 | 37 | // | |
@@ -40,7 +40,7 @@ import ( | ||
40 | 40 | // Revision | The topic of the content of the resource. |
41 | 41 | // | |
42 | 42 | // ContentStatus | The status of the content. For example: Values might include "Draft", |
43 | -// | "Reviewed", and "Final" | |
43 | +// | "Reviewed" and "Final" | |
44 | 44 | // | |
45 | 45 | // Category | A categorization of the content of this package. |
46 | 46 | // | |
@@ -1221,7 +1221,7 @@ func (f *File) GetPageLayout(sheet string, opts ...PageLayoutOptionPtr) error { | ||
1221 | 1221 | } |
1222 | 1222 | |
1223 | 1223 | // 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. | |
1225 | 1225 | // For example: |
1226 | 1226 | // |
1227 | 1227 | // f.SetDefinedName(&excelize.DefinedName{ |
@@ -1946,13 +1946,13 @@ func (f *File) NewConditionalStyle(style string) (int, error) { | ||
1946 | 1946 | } |
1947 | 1947 | |
1948 | 1948 | // 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. | |
1950 | 1950 | func (f *File) GetDefaultFont() string { |
1951 | 1951 | font := f.readDefaultFont() |
1952 | 1952 | return font.Name.Val |
1953 | 1953 | } |
1954 | 1954 | |
1955 | -// SetDefaultFont changes the default font in the workbook | |
1955 | +// SetDefaultFont changes the default font in the workbook. | |
1956 | 1956 | func (f *File) SetDefaultFont(fontName string) { |
1957 | 1957 | font := f.readDefaultFont() |
1958 | 1958 | font.Name.Val = fontName |
@@ -1962,7 +1962,7 @@ func (f *File) SetDefaultFont(fontName string) { | ||
1962 | 1962 | s.CellStyles.CellStyle[0].CustomBuiltIn = &custom |
1963 | 1963 | } |
1964 | 1964 | |
1965 | -// readDefaultFont provides an unmarshalled font value | |
1965 | +// readDefaultFont provides an unmarshalled font value. | |
1966 | 1966 | func (f *File) readDefaultFont() *xlsxFont { |
1967 | 1967 | s := f.stylesReader() |
1968 | 1968 | return s.Fonts.Font[0] |