identigen

command module
v0.0.0-...-38282b8 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

README

Identigen

GoDoc Changelog Build Status Go Report Card identities

This software is meant to create fake Italian identities to provide test accounts.

We provide binaries, but it is strongly suggested to obtain this package via

go get github.com/empijei/identigen

Documentation on how to use the library can be found here and APIs are documented here

The usage is fairly simple:

Usage of identigen:
  -dt_fmt string
    	The format of the dates. Supports: 'eu','us','ja' (default "eu")
  -fields string
    	The comma separated list of fields to print. Use 'all' to print all of them (default "all")
  -format string
    	The comma separated list of formats for the output. Supports: 'json', 'csv', 'human' (default "human")
  -maxage int
    	The maximum age for random people generation. Must be positive and more than minage. (default 55)
  -minage int
    	The minimum age for random people generation. Must be positive and less than maxage. (default 25)
  -number int
    	The amount of random people to generate. Must be positive. (default 1)

Sample output:

$ identigen -number 2 -fields Nome,Cognome,DataDiNascita -dt_fmt ja -format json
[
	{
		"Cognome": "Sammartano",
		"DataDiNascita": "1967/08/19",
		"Nome": "Cleo"
	},
	{
		"Cognome": "Buonfiglio",
		"DataDiNascita": "1970/09/17",
		"Nome": "Anna"
	}
]

For any feature request or bug report feel free to open new issues.

Want to add a feature you coded yourself? Pull requests are also welcome!

Bonus feature: all flags are six characters long!

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