-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxlsxtra.go
25 lines (25 loc) · 895 Bytes
/
xlsxtra.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Package xlsxtra provides extra utilities for the xlsx
// package (https://github.com/tealeg/xlsx) to manipulate
// excel files:
//
// - Sort(), SortByHeaders: multi-column (reverse) sort of selected rows. (Note that columns are one based, not zero based to make reverse sort possible.)
//
// - AddBool(), AddInt(), AddFloat(), ...: shortcut to add
// a cell to a row with the right type.
//
// - NewStyle(): create a style and set the ApplyFill,
// ApplyFont, ApplyBorder and ApplyAlignment automatically.
//
// - NewStyles(): create a slice of styles based on a color
// palette
//
// - Sheets: access sheets by name instead of by index
//
// - Col: access cell values of a row by column header title
//
// - SetRowStyle: set style of all cells in a row
//
// - ToString: convert a xlsx.Row to a slice of strings
//
// See Col(umn) and Sort example for a quick introduction.
package xlsxtra