colcp

package
v0.0.0-...-9ccab0f Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupData

func BackupData(inp string) error

func CopyCol

func CopyCol(cb CopyBlock, dstFile string) error

func GetLogger

func GetLogger(level string) *slog.Logger

Types

type Config

type Config struct {
	DstFile  string      `yaml:"目标文件"`
	Copy     []CopyBlock `yaml:"复制"`
	Formulae []Formula   `yaml:"公式"`
}

type CopyBlock

type CopyBlock struct {
	SrcFile        string    `yaml:"源文件"`
	DstFile        string    `yaml:"目标文件"`
	SrcSheet       string    `yaml:"源标签页"`
	DstSheet       string    `yaml:"目标标签页"`
	SrcIdxStartEnd [2]string `yaml:"源起、止序号单元"`
	DstIdxStartEnd [2]string `yaml:"目标起、止序号单元"`
	SrcDataCols    []string  `yaml:"源数据列"`
	DstDataCols    []string  `yaml:"目标数据列"`
}

type Formula

type Formula struct {
	Cell    string `yaml:"单元格"`
	FormDef string `yaml:"公式定义"`
}

Jump to

Keyboard shortcuts

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