data-worker

command module
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: 2 Imported by: 0

README

Overview

Data worker, data generator, generate a lot data by config.

中文说明

Where is for?

  • Data test
  • Demo
  • Unit Test for developing

Features

  • Define some specified fields and parameters by config.
  • Load external dict to use more data.

Usage

Create a json file for config,and save to config folder。for example:
{
  "dict_path": "dict",
  "build": {
    "count": 5,
    "format": "json",
    "name": "demo",
    "path": "out"
  },
  "fields": [
    {
      "name": "id",
      "type": "uuid"
    },
    {
      "name": "name",
      "type": "string",
      "dict": "usernames"
    },
    {
      "name": "creat_dt",
      "type": "datetime"
    }
  ]
}
  • dict_path: It's a dict folder includes some dict files
  • build: Build command
  • fields: Setup output a few fields
Assign -c parameter,setup config。
data-worker build -c ./config/demo.json

Plan

  • Output cvs file
  • Suport generate email address

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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