rmgen is a command-line interface (CLI) tool written in Golang for generating random data based on a JSON configuration file. It's designed to make it easy for developers to quickly generate sample data for testing and development purposes.
- Simple and intuitive JSON configuration for defining data fields and types.
- CSV output for easy integration with various applications and tools.
- Customizable number of records to generate.
- Supports various data types, such as email, name, etc.
To use rmgen, you need to have Golang installed. If you don't have Golang installed, you can download it here.
- Clone the repository:
git clone https://github.com/abinashphulkonwar/rmgen
cd rmgen
- Build the executable:
go build
- Run the tool:
./rmgen.exe -f path/to/your/config.json -c 1000
Create a JSON configuration file to specify the fields and data types to generate. Example:
[
{
"field_name": "user email",
"type": "email"
},
{
"field_name": "user name",
"type": "name"
}
]
./rmgen.exe -f path/to/your/config.json -c 1000
- -f: Specify the path to your JSON configuration file.
- -c: Specify the number of records to generate.
Generate 1000 records based on the provided configuration:
./rmgen.exe -f path/to/your/config.json -c 1000
Feel free to contribute by opening issues or pull requests. Any feedback or suggestions are highly appreciated.
This project is licensed under the MIT License - see the LICENSE file for details.