Categorygithub.com/gelleson/gcsv
modulepackage
1.0.0
Repository: https://github.com/gelleson/gcsv.git
Documentation: pkg.go.dev

# README

GCSV

Go Report Card

GCSV is a yaml based csv file generator.

Example

gcsv generate example.yaml
# example.yaml
documents:
  - name: example_data
    rows: 1000
    with_header: true
    columns:
      - name: id
        type: seq
        kwargs:
          initial_sequence: 100
      - name: last_name
        type: personal
        kwargs:
          mode: last_name
      - name: random_date
        type: date
        kwargs:
          format: 2006-01-02 03:04:05
          from: '2006-01-02 03:04:05'
          to: '2012-01-02 03:04:05'
      - name: random_int
        type: int
out:
CSV is generated
idlast_namerandom_daterandom_int
101Allen2021-01-01 01:36:5050
102Burton2020-05-11 09:32:3144
103Meyer2020-11-23 09:10:2156058
104Wells2020-12-16 10:34:112
105Ray2020-02-18 03:52:179397
106Jones2020-04-24 04:55:209189
107Thompson2020-04-24 05:09:18823
108Cox2020-04-01 03:49:081
109Duncan2020-12-20 04:46:56918
110Howell2020-07-23 07:37:2947685

# Packages

No description provided by the author
No description provided by the author