summaryrefslogtreecommitdiff
path: root/col.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-05-11 10:14:18 +0800
committerxuri <xuri.me@gmail.com>2018-05-11 10:14:18 +0800
commiteb62256d165607c6877ce88efbba10c119137b3d (patch)
tree94d91454dd54b15dac228097323f23b54d22c3fc /col.go
parentb5655ce121d4cca68423035ff77c2d833478a868 (diff)
Simplify testing code, add test case for outline functions and update the godoc.
Diffstat (limited to 'col.go')
-rw-r--r--col.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/col.go b/col.go
index 515e064..05ad0cc 100644
--- a/col.go
+++ b/col.go
@@ -67,11 +67,11 @@ func (f *File) SetColVisible(sheet, column string, visible bool) {
xlsx.Cols.Col = append(xlsx.Cols.Col, col)
}
-// GetColOutlineLevel provides a function to get outline level of a single column by given
-// worksheet name and column name. For example, get outline level of column D
-// in Sheet1:
+// GetColOutlineLevel provides a function to get outline level of a single
+// column by given worksheet name and column name. For example, get outline
+// level of column D in Sheet1:
//
-// xlsx.getColOutlineLevel("Sheet1", "D")
+// xlsx.GetColOutlineLevel("Sheet1", "D")
//
func (f *File) GetColOutlineLevel(sheet, column string) uint8 {
xlsx := f.workSheetReader(sheet)
@@ -88,8 +88,9 @@ func (f *File) GetColOutlineLevel(sheet, column string) uint8 {
return level
}
-// SetColOutlineLevel provides a function to set outline level of a single column by given
-// worksheet name and column name. For example, set outline level of column D in Sheet1 to 2:
+// SetColOutlineLevel provides a function to set outline level of a single
+// column by given worksheet name and column name. For example, set outline
+// level of column D in Sheet1 to 2:
//
// xlsx.SetColOutlineLevel("Sheet1", "D", 2)
//