Documentation
¶
Index ¶
- func ExportZip[T comparable](dst io.Writer, excels []*Excel[T]) error
- func Import[T comparable](r io.Reader, opts ...excelize.Options) (e []*T, err error)
- type Excel
- func (f *Excel[T]) AddDict(key string, value dict) *Excel[T]
- func (f *Excel[T]) Export(data any) (e *Excel[T], err error)
- func (f *Excel[T]) Import() (datas []*T, err error)
- func (f *Excel[T]) Read(r io.Reader, opts ...excelize.Options) (*Excel[T], error)
- func (f *Excel[T]) SetSheet(sheet string) *Excel[T]
- func (f *Excel[T]) ValidTitle(dst *Excel[T]) (e *Excel[T], err error)
- type Handle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Excel ¶
type Excel[T comparable] struct { *excelize.File FileName string Headers []string HeaderMapper amap.AMap ExcelMapper map[tag.GtField]string // contains filtered or unexported fields }
func NewExcel ¶
func NewExcel[T comparable]() *Excel[T]
type Handle ¶
type Handle[T comparable] interface { ExcelHandle([]*T) error }
Click to show internal directories.
Click to hide internal directories.