excel

package
v0.0.0-...-8707e75 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FindPathReg = regexp.MustCompile(`sheet\[(\d*)(:(\d*))?\]/row\[(\d*)(:(\d*))?\]/col\[(\d+)\]`)

用于校验base.FieldTag.Path

View Source
var FindPathVarReg = regexp.MustCompile(`(sheet\[)?(\d+)(\])?/(row\[)?(\d+)(\])?/(col\[)?(\d+)(\])?`)

Functions

func GetExcelTags

func GetExcelTags(baseTags *base.FieldTagMap) *base.FieldTagMap

获取schema是excel、匹配excelPathReg的所有tag

func GetVar

func GetVar(pathFilled string) (sheet int, row int, col int, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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