Documentation ¶
Index ¶
- Constants
- func CheckStringInArray(search string, slices []string) bool
- func CsvOutputSequence(t *Template) error
- func CsvReader(t *Template) error
- func ExcelOutputSequence(t *Template) error
- func ExcelReader(t *Template) error
- type Template
- type TemplateConfig
- type TemplateOutputSequenceFunc
- type TemplateReaderFunc
Constants ¶
View Source
const ( TYPE_CSV string = "csv" TYPE_EXCEL = "excel" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Template ¶
type Template struct { Head []string Body []string Config *TemplateConfig // 读取模板文件 Reader TemplateReaderFunc // 输出模板生成的序列 OutputSequence TemplateOutputSequenceFunc // contains filtered or unexported fields }
模板文件
type TemplateConfig ¶
type TemplateConfig struct { Prefix string Count uint64 StartCount uint64 ExcludeIndexs []string OutputType string }
模板配置
type TemplateReaderFunc ¶
Click to show internal directories.
Click to hide internal directories.