Documentation
¶
Index ¶
- Variables
- func MergeCell(sw *excelize.StreamWriter, startRowNum, endRowNum int, cells []string)
- func NewFile(sheet string, header []string) (*excelize.File, error)
- func NewSheet(f *excelize.File, sheet string, header []string) error
- func SetBodyRow(sw *excelize.StreamWriter, f *excelize.File, rowNum int, cellVal []any)
- func SetBodyRow2(sw *excelize.StreamWriter, f *excelize.File, rowNum int, cellVal []string, ...)
- func SetCellDropListStyle(sw *excelize.StreamWriter, f *excelize.File, hiddenSheetName string, ...)
- func SetHeaderRow(sw *excelize.StreamWriter, f *excelize.File, rowNum int, colWith float64, ...)
- func SetNoteRow(sw *excelize.StreamWriter, f *excelize.File, rowNum, maxCol int, ...) error
- func ToRow(v any) (headers []string, values []any, err error)
- type ColumnNumber
- type Export
Constants ¶
This section is empty.
Variables ¶
View Source
var ColumnLetter = [...]string{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "Values", "W", "X", "Y", "Z", "AA", "AB", "AC"}
View Source
var HeaderStyle = &excelize.Style{ Border: []excelize.Border{{ Type: "left", Color: "000000", Style: 1, }, { Type: "top", Color: "000000", Style: 1, }, { Type: "bottom", Color: "000000", Style: 1, }, { Type: "right", Color: "000000", Style: 1, }}, Fill: excelize.Fill{ Type: "pattern", Pattern: 1, Color: []string{"#bfbfbf"}, }, Font: &excelize.Font{Bold: true}, Alignment: &excelize.Alignment{ Horizontal: "center", Vertical: "center", }, Protection: nil, NumFmt: 0, CustomNumFmt: nil, NegRed: false, }
View Source
var Style = &excelize.Style{ Alignment: &excelize.Alignment{ Horizontal: "center", Vertical: "center", }, }
Functions ¶
func MergeCell ¶
func MergeCell(sw *excelize.StreamWriter, startRowNum, endRowNum int, cells []string)
MergeCell performs the operation.
func SetBodyRow ¶
SetBodyRow updates or inserts a value.
func SetBodyRow2 ¶
func SetBodyRow2(sw *excelize.StreamWriter, f *excelize.File, rowNum int, cellVal []string, errStyleLoc map[int]byte)
SetBodyRow2 updates or inserts a value.
func SetCellDropListStyle ¶
func SetCellDropListStyle(sw *excelize.StreamWriter, f *excelize.File, hiddenSheetName string, dropListSize int, effectCellStart, effectCellEnd string)
SetCellDropListStyle updates or inserts a value.
func SetHeaderRow ¶
func SetHeaderRow(sw *excelize.StreamWriter, f *excelize.File, rowNum int, colWith float64, headers []string)
SetHeaderRow updates or inserts a value.
func SetNoteRow ¶
func SetNoteRow(sw *excelize.StreamWriter, f *excelize.File, rowNum, maxCol int, rowHeight float64, note string) error
SetNoteRow updates or inserts a value.
Types ¶
type ColumnNumber ¶
type ColumnNumber int
const ( A ColumnNumber = iota B C D E F G H I J K L M N O P Q R S T U V W X Y Z AA AB AC )
Click to show internal directories.
Click to hide internal directories.