n0str / rgen

Easy to use helpers for random data generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rgen

Easy to use helpers for random data generation

push Go Report Card

Usage

Run binary file with the following arguments

Usage: ./rgen: <command> <arguments>
Commands: id58, id58l, id58u, id92
Arguments:
  -n int
        how many symbols to generate (default 10)
Command: word
Arguments:
  -n int
    	how many words to generate (default 4)

Output

Sample output of for i in {1..5}; do ./rgen id58 -n 16; done

qGGXyV3JfbAsFFDy
gFDvKc2uNbeCnuMj
8vBJxASnbdPXFFeX
8ssaJNpYkqUep9tB
MoCQpSPTwouywycE

Sample output of for i in {1..5}; do ./rgen id58l -n 4; done

pa4u
sc99
ua2d
eohp
o3wr

Sample output of for i in {1..3}; do ./rgen id58u -n 31; done

2R5TG33TABP9KDLAQ4AY7DZ3EZ4SE85
6NCQNEMNPBMEGW8CBVDKHEQC13V6SJT
JRVM1XC7QTGKSFHH3EALRSYPQQF8MD9

Sample output of for i in {1..3}; do ./rgen id92 -n 9; done

Ke!.rBp2y
R\3s:ynf[
ga8Ue7[w

Sample output of for i in {1..3}; do ./rgen word -n 5; done

thiller-matinal-kecked-spaned-slept
torched-hamba-gaijin-delve-fact
kutch-cubebs-mineral-acting-ridgy

Installation

go get github.com/n0str/rgen

You can also download release files from GitHub

Build

Clone the repository, compile binary for linux, macos or windows and run.

git clone https://github.com/n0str/rgen
cd rgen
GOOS=linux go build -o rgen-linux .

Or you can compile binary for linux, macos or windows with docker.

git clone https://github.com/n0str/rgen
cd rgen
docker-compose run --rm rgen make build-linux

And binary file will be in directory "build".

cd build

Now you can run the binary file rgen-linux

About

Easy to use helpers for random data generation


Languages

Language:Go 99.8%Language:Makefile 0.2%Language:Dockerfile 0.0%Language:Shell 0.0%