Skip to content

This build supports new flags and features

Latest
Compare
Choose a tag to compare
@empijei empijei released this 28 Feb 16:11
· 63 commits to master since this release

This build is more usable and allows easier integration with other *nix tools.

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

go get github.com/empijei/identigen

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": "Laura"
    },
    {
        "Cognome": "Buonfiglio",
        "DataDiNascita": "1970/09/17",
        "Nome": "Anna"
    }
]

Note: This was only tested on linux_amd64 and darwin_amd64 and cross-compiled from linux