json2map

package
v0.0.0-...-cde2814 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2015 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Json2csv

type Json2csv struct {
	// the leading name representing root, default is empty
	RootKeyName    string
	JsonKey2MapKey func([]JsonKey) string
	// contains filtered or unexported fields
}

func New

func New() *Json2csv

func NewWithRootKeyName

func NewWithRootKeyName(rootKeyName string) *Json2csv

func (*Json2csv) Convert

func (self *Json2csv) Convert(r io.Reader) (map[string]interface{}, error)

type JsonKey

type JsonKey struct {
	Key string
	// if Index >= 0, it means that the object of this JsonKey is a json array,
	// and Index is the key's index of the array
	Index int
}

func (*JsonKey) String

func (self *JsonKey) String() string

Jump to

Keyboard shortcuts

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