tmpl

package
v0.0.0-...-e8e4d50 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 4 Imported by: 0

README

代码模板

处理流程

  1. 读取输入文件内容

  2. 转换输入文件内容为结构体

  3. 读取配置文件内容

  4. 读取配置文件内容为结构体

  5. 对处理目标进行循环处理(获取内容,检查内容等)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcItem

func ProcItem(list []Content)

处理单个对象文件

func RunProc

func RunProc(inputFile string, configFile string)

执行所有处理

Types

type Config

type Config struct {
}

配置

func ReadConfig

func ReadConfig(configFile string) (Config, error)

读取配置

type Content

type Content struct {
	File     string
	ProcInfo []string
}

内容

func GetNg

func GetNg(list []Content) []Content

获取NG内容

func ReadItem

func ReadItem(file string, config Config) Content

读取单个对象文件

func ReadList

func ReadList(files []string, config Config) []Content

读取所有对象文件

type Input

type Input struct {
	FileRootPath []string `yaml:"fileRootPath"`
	FileNamePart []string `yaml:"fileNamePart"`
	FileType     []string `yaml:"fileType"`
	FileList     string   `yaml:"fileList"`
	InfoFile     string   `yaml:"infoFile"`
	ResultFile   string   `yaml:"resultFile"`
}

输入

func ReadInput

func ReadInput(inputFile string) (Input, error)

读取输入

Jump to

Keyboard shortcuts

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