summaryrefslogtreecommitdiff
path: root/lib.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-04-20 14:57:50 +0800
committerxuri <xuri.me@gmail.com>2019-04-20 14:57:50 +0800
commit0660f30cddc06de7883d40eb4f8e4945c18a0252 (patch)
tree99d44e701af30b7d5676909c6cb45740efec0bd9 /lib.go
parent0f9170a03b9fe19c1c22687fba8bcbdfd69a6347 (diff)
godoc update and typo fixed
Diffstat (limited to 'lib.go')
-rw-r--r--lib.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib.go b/lib.go
index ad4f79a..b99b175 100644
--- a/lib.go
+++ b/lib.go
@@ -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:
//