Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/varmaexe/csv-parser

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/varmaexe/csv-parser

  • v0.0.0-20230220064515-e497b08398be
  • Source
  • Go
  • Socket score

Version published
Created
Source

CSV Parser

Overview

This project is a Golang-based API that parses CSV files and returns the data in JSON format. The API accepts CSV files with a header row, and it assumes that the first row contains the column names. The API uses the encoding/csv package in Golang to read the CSV file, and it returns the data as slice of structs in formatted way.

Installation

To use the API, you will need to have Golang installed on your computer. You can download and install Golang from the official website: https://golang.org/dl/

Once you have Golang installed, you can clone the repository and run the following command to install the required packages:

go get github.com/gorilla/mux

Usage

To use the API, run the following command:

go run main.go

This will start the server on port 8888. You can then make a POST request to the API with a CSV file in the request body. The API will parse the CSV file and return the data in formatted way.

API Endpoints The API has one endpoint:

POST /upload This endpoint accepts a CSV file in the request body and returns the data in slice of structs

Contributing

If you would like to contribute to the project, please follow these steps:

Fork the repository.

  1. Create a new branch for your changes.
  2. Make your changes and test them.
  3. Commit your changes and push them to your fork.
  4. Create a pull request.

FAQs

Package last updated on 20 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc