xle

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column[T any] struct {
	Title  string           // 标题
	Width  float64          // 宽度
	Render func(T, int) any // 渲染
}

type Table

type Table[T any] struct {
	File       *excelize.File
	Cell       string
	Sheet      string
	Columns    []Column[T]
	DataSource []T
}

func New

func New[T any](file *excelize.File, columns []Column[T], datasource []T) *Table[T]

func (Table[T]) GetOrigin

func (table Table[T]) GetOrigin() (int, int, error)

func (Table[T]) Render

func (table Table[T]) Render() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL