json2csv

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 5 Imported by: 0

README

json2csv

A simple tool for formatting JSON objects as CSV records.

Features

  • Support array of objects
  • Support streaming objects

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(w io.Writer, r io.Reader, opts ...Option) error

Convert maps JSON objects to CSV.

Types

type Option

type Option func(*config)

Option

func MapFieldToColumn

func MapFieldToColumn(fieldName string, columnIndex int) Option

MapFieldToColumn

func SkipColumnTitles

func SkipColumnTitles() Option

SkipColumnTitles

Jump to

Keyboard shortcuts

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