diff options
author | xuri <xuri.me@gmail.com> | 2018-05-11 10:14:18 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2018-05-11 10:14:18 +0800 |
commit | eb62256d165607c6877ce88efbba10c119137b3d (patch) | |
tree | 94d91454dd54b15dac228097323f23b54d22c3fc /col.go | |
parent | b5655ce121d4cca68423035ff77c2d833478a868 (diff) |
Simplify testing code, add test case for outline functions and update the godoc.
Diffstat (limited to 'col.go')
-rw-r--r-- | col.go | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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) // |