From eb62256d165607c6877ce88efbba10c119137b3d Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 11 May 2018 10:14:18 +0800 Subject: Simplify testing code, add test case for outline functions and update the godoc. --- col.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'col.go') 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) // -- cgit v1.2.1