xlsx

package
v0.0.0-...-69d094b Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package xlsx 提供 excel 工具封装, 仅实现简单填值。更复杂的还是要使用 excelize

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CellName

func CellName(row, col int) string

CellName 按行、列(均从 0 开始)对应的单元格名称

Types

type Xlsx

type Xlsx struct {
	// contains filtered or unexported fields
}

Xlsx 提供 Excel 简易操作

func New

func New() *Xlsx

New 新建一个 Xlsx 工具

func (*Xlsx) Excelize

func (x *Xlsx) Excelize() *excelize.File

Excelize 获取内置的 *excelize.File 对象

func (*Xlsx) Save

func (x *Xlsx) Save(filePath string) error

Save 保存至文件

func (*Xlsx) Set

func (x *Xlsx) Set(sheet string, row, col int, content any)

Set 填充值

Jump to

Keyboard shortcuts

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