core

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertColumnToLetter added in v0.3.0

func ConvertColumnToLetter(colIndex int) string

将数字转为字母列号.

colIndex  int  列号,必须从1开始
@return     string  转换后的字母列号,如果转换不成功返回空字符串

func GetCellValueByTag

func GetCellValueByTag(axisName string, alignedArr [][]string) (string, error)

func GetCellValueByVerticalTag added in v0.2.0

func GetCellValueByVerticalTag(tagValue int, colValue int, alignedArr [][]string) (string, error)

用于获得列式表的数据。tagValue为结构体中标记的值,该值直接用数值表示。

func IsWithInMergeScope

func IsWithInMergeScope(col, row int, mergeCells []excelize.MergeCell) (bool, string, error)

判断单元格是否在合并范围内

func MaxWidth

func MaxWidth(matrix [][]string) int

maxWidth 获取二维数组中第二维的最大宽度(即每行上最大的列数)

func ShrinkArray

func ShrinkArray(alignedArray [][]string) ([][]string, error)

缩小数组.给定一个已经对齐的数组(第二维长度一致),从最末列开始,如果整列的值都为空字符串,则该列可以被删除

func UnpackAxisName

func UnpackAxisName(axisName string) (row int, col int, err error)

excel轴分析,根据轴名称返回 row,col,错误

Types

This section is empty.

Jump to

Keyboard shortcuts

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