handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(filePath, fileName string, count int, fields []interface{})

Build 编译输出json文件

func CheckPathIsExist

func CheckPathIsExist(path string) bool

CheckPathIsExist 判断目录或文件是否存在 存在返回 true 不存在返回false

func GenRow

func GenRow(index int, fields []interface{}) map[string]interface{}

GenRow Generate a row data

func LoadDicts

func LoadDicts(fields []interface{}, reCount float64, dictPath string)

LoadDicts Load dict by fields

func ReadLines

func ReadLines(reCount, rowCount float64, path string) []string

ReadLines Read a few line @reCount return count @rowCount dict file row count

Types

This section is empty.

Jump to

Keyboard shortcuts

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