diff options
author | xuri <xuri.me@gmail.com> | 2019-04-20 14:57:50 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-04-20 14:57:50 +0800 |
commit | 0660f30cddc06de7883d40eb4f8e4945c18a0252 (patch) | |
tree | 99d44e701af30b7d5676909c6cb45740efec0bd9 /lib.go | |
parent | 0f9170a03b9fe19c1c22687fba8bcbdfd69a6347 (diff) |
godoc update and typo fixed
Diffstat (limited to 'lib.go')
-rw-r--r-- | lib.go | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -87,7 +87,7 @@ func SplitCellName(cell string) (string, int, error) { return "", -1, newInvalidCellNameError(cell) } -// JoinCellName joins cell name from column name and row number +// JoinCellName joins cell name from column name and row number. func JoinCellName(col string, row int) (string, error) { normCol := strings.Map(func(rune rune) rune { switch { @@ -107,9 +107,9 @@ func JoinCellName(col string, row int) (string, error) { return fmt.Sprintf("%s%d", normCol, row), nil } -// ColumnNameToNumber provides a function to convert Excel sheet -// column name to int. Column name case insencitive -// Function returns error if column name incorrect. +// ColumnNameToNumber provides a function to convert Excel sheet column name +// to int. Column name case insensitive. The function returns an error if +// column name incorrect. // // Example: // @@ -135,8 +135,8 @@ func ColumnNameToNumber(name string) (int, error) { return col, nil } -// ColumnNumberToName provides a function to convert integer -// to Excel sheet column title. +// ColumnNumberToName provides a function to convert the integer to Excel +// sheet column title. // // Example: // @@ -154,8 +154,8 @@ func ColumnNumberToName(num int) (string, error) { return col, nil } -// CellNameToCoordinates converts alpha-numeric cell name -// to [X, Y] coordinates or retrusn an error. +// CellNameToCoordinates converts alphanumeric cell name to [X, Y] coordinates +// or returns an error. // // Example: // |