jtoc

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 5 Imported by: 0

README

json-to-csv simple sync/async converter

go logo

Project structure:

├── go.mod
├── jtoc.go
├── LICENSE
└── README.md

Installation

go get github.com/kenjitheman/jtoc

Usage

jtoc.Convert(jsonFilePath string, outputCsvFileName string)

jtoc.AsyncConvert(jsonFilePath string, outputCsvFileName string, numWorkers int)
  • NumWorkers - num of concurrent goroutines | change it if you want/need more or less.

  • Example:

jtoc.Convert("../man.json", "../man.csv")

jtoc.AsyncConvert("../man.json", "../man1.csv", 8)

Contributing

  • Pull requests are welcome, for major changes, please open an issue first to discuss what you would like to change.

license

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncConvert

func AsyncConvert(jsonFilePath, outputCsvFileName string, numWorkers int)

func Convert

func Convert(jsonFilePath, outputCsvFileName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL