handler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SLEEP_DELAY time.Duration = 2

Variables

This section is empty.

Functions

func Build

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

Build 编译输出json文件

func CheckPathIsExist

func CheckPathIsExist(path string) bool

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

func GenRowMap added in v0.3.0

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

GenRowMap Generate a row map data

func GenRowStrings added in v0.3.0

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

GenRowStrings Generate a string array

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