Simple go script that converts csv file into a json document

csv-go-parser

Simple go script that converts csv file into a json document.

CSV Input:

id,first_name,last_name,email,avatar,ip_address
1,Pauline,Hirth,[email protected],https://robohash.org/doloremdignissimosoccaecati.png?size=50x50&set=set1,199.109.72.212
2,Gilly,Challicombe,[email protected],https://robohash.org/voluptatumomnisaliquid.png?size=50x50&set=set1,14.139.200.228
3,Laverna,Ratledge,[email protected],https://robohash.org/quiavoluptatemplaceat.png?size=50x50&set=set1,22.254.66.241
4,Clary,Forbes,[email protected],https://robohash.org/temporequidolor.png?size=50x50&set=set1,234.201.73.224
5,Alia,Bilyard,[email protected],https://robohash.org/eumetneque.png?size=50x50&set=set1,172.242.193.201
6,Giacobo,Hulle,[email protected],https://robohash.org/autemodioporro.png?size=50x50&set=set1,177.34.216.2

JSON output:

[
  {
    "last_name": "last_name",
    "email": "email",
    "avatar": "avatar",
    "ip_address": "ip_address"
  },
  {
    "last_name": "Hirth",
    "email": "[email protected]",
    "avatar": "https://robohash.org/doloremdignissimosoccaecati.png?size=50x50&set=set1",
    "ip_address": "199.109.72.212"
  },
  {
    "last_name": "Challicombe",
    "email": "[email protected]",
    "avatar": "https://robohash.org/voluptatumomnisaliquid.png?size=50x50&set=set1",
    "ip_address": "14.139.200.228"
  },
  {
    "last_name": "Ratledge",
    "email": "[email protected]",
    "avatar": "https://robohash.org/quiavoluptatemplaceat.png?size=50x50&set=set1",
    "ip_address": "22.254.66.241"
  },
  {
    "last_name": "Forbes",
    "email": "[email protected]",
    "avatar": "https://robohash.org/temporequidolor.png?size=50x50&set=set1",
    "ip_address": "234.201.73.224"
  },
  {
    "last_name": "Bilyard",
    "email": "[email protected]",
    "avatar": "https://robohash.org/eumetneque.png?size=50x50&set=set1",
    "ip_address": "172.242.193.201"
  },
  {
    "last_name": "Hulle",
    "email": "[email protected]",
    "avatar": "https://robohash.org/autemodioporro.png?size=50x50&set=set1",
    "ip_address": "177.34.216.2"
  }
]
Owner
Martin Patino
Software Engineer | Building web apps for fun | Nodejs, .NET Developer | Star Wars and breakfast food fan 🥞🍳☕️
Martin Patino
Similar Resources

RtxTest - Extract this zip file into your golang development environment

Documentation 1. Clone or extract file extract this zip file into your golang de

May 12, 2022

gsheet is a CLI tool (and Golang package) for piping csv data to and from Google Sheets

gsheet Table of Contents Introduction Why? Installation Authentication and Authorization What about OAuth authentication? CLI Usage Sheet commands Dri

Nov 15, 2022

GoCsv is a library written in pure Go to use csv data more comfortable

GoCsv GoCsv is a library written in pure Go to use csv data more comfortable Supported Go version golang = 1.13 Installation go get github.com/shr004

Nov 1, 2022

This program let you create a DataSet (.CSV) with all TedTalks

TedTalks-Scraper This program let you create a file .CSV with all information from TedTalks, including: Title Description Views (Number of Views) Auth

Dec 26, 2021

CSV asynchronous I/O package for go.

golib/csvio selectでの非同期処理に対応した、csvベースでの読み込み/書き込みを行うライブラリです。 csvio.Config CSVのコンマの値や、クォートの有無など、扱うCSVに対するフォーマットを指定できます。 csvio.Reader selectでの非同期処理に対応した、

Jan 21, 2022

FujiSimuRecipesGen - A Golang program to generate Fujifilm simulations from recipes of such simulations in CSV

FujiSimuRecipesGen - A Golang program to generate Fujifilm simulations from recipes of such simulations in CSV

Aug 12, 2022

tiny script made in go to replace mkdir and touch

Simple make file and directories ptouch tiny script made in go to make easy mkdir and touch Install sudo

Nov 1, 2021

Provide an upload endpoint that stores files on pinata and returns a json response with the uploaded file pinata url

Purpose Build a template repository to get to coding as quickly as possible, by starting from a common template which follows the guidelines here Feat

Dec 30, 2021

ZipFly: a golang HTTP server that streams a ZIP file from a list of URLs extracted from a JSON manifest

ZipFly, streaming files as a ZIP like a 🚀 ZipFly is a golang HTTP server that s

Jun 6, 2022
csv reader/writer and csv generator.

IO csv reader sample version 0.0.1-SNAPSHOT Goals: main: read huge file, hex substring, write to new file. repo has 2 version. v1 can read a file and

Nov 4, 2021
Allows parsing CSV files into custom structs and implements required fields that can't be empty

Welcome to Go Custom CSV Parser ?? Allows parsing CSV files into custom structs and implements required fields that can't be empty ?? Homepage Install

Nov 9, 2021
Read csv file from go using tags

go-csv-tag Read csv file from Go using tags The project is in maintenance mode. It is kept compatible with changes in the Go ecosystem but no new feat

Nov 16, 2022
Extract profiles and tasks information from CSV file

Footsite-Bot ideas from jw6602 Extract profiles and tasks information from CSV f

Nov 25, 2022
A simple utility for validating CSV columns

gompare A simple utility for validating CSV columns Building In project directly, run go build Usage ./gompare --template-file=template.csv --input-fi

Feb 3, 2022
A PDF document generator with high level support for text, drawing and images

GoFPDF document generator Package go-pdf/fpdf implements a PDF document generator with high level support for text, drawing and images. Features UTF-8

Jan 4, 2023
Convert document to pdf with golang

Convert document to pdf Build docker: docker build --pull --rm -f "Dockerfile" -t convertdocument:latest "." docker run -p 3000:3000 registry.gitlab.

Nov 29, 2021
go-fastdfs 是一个简单的分布式文件系统(私有云存储),具有无中心、高性能,高可靠,免维护等优点,支持断点续传,分块上传,小文件合并,自动同步,自动修复。Go-fastdfs is a simple distributed file system (private cloud storage), with no center, high performance, high reliability, maintenance free and other advantages, support breakpoint continuation, block upload, small file merge, automatic synchronization, automatic repair.(similar fastdfs).
go-fastdfs 是一个简单的分布式文件系统(私有云存储),具有无中心、高性能,高可靠,免维护等优点,支持断点续传,分块上传,小文件合并,自动同步,自动修复。Go-fastdfs is a simple distributed file system (private cloud storage), with no center, high performance, high reliability, maintenance free and other advantages, support breakpoint continuation, block upload, small file merge, automatic synchronization, automatic repair.(similar fastdfs).

中文 English 愿景:为用户提供最简单、可靠、高效的分布式文件系统。 go-fastdfs是一个基于http协议的分布式文件系统,它基于大道至简的设计理念,一切从简设计,使得它的运维及扩展变得更加简单,它具有高性能、高可靠、无中心、免维护等优点。 大家担心的是这么简单的文件系统,靠不靠谱,可不

Jan 8, 2023
A tool for moving files into directories by file extensions
A tool for moving files into directories by file extensions

The tool for moving files into directories by file extensions Example before moving structure: moving into same extension dir result: moving into diff

Dec 6, 2021
Ghostinthepdf - This is a small tool that helps to embed a PostScript file into a PDF

This is a small tool that helps to embed a PostScript file into a PDF in a way that GhostScript will run the PostScript code during the

Dec 20, 2022