oututils

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 6 Imported by: 0

README

oututils

build Go report codecov Documentation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringMap

type StringMap map[string]interface{}

StringMap is an alias for map[string]interface{}, which is correctly encoded into csv.

func (StringMap) MarshalCSV

func (sm StringMap) MarshalCSV() (string, error)

MarshalCSV allows StringMap to implement gocsv.TypeMarshaller interface.

type StringSlice

type StringSlice []string

StringSlice is an alias for []string, which is correctly encoded into csv.

func (StringSlice) MarshalCSV

func (ss StringSlice) MarshalCSV() (string, error)

MarshalCSV allows StringSlice to implement gocsv.TypeMarshaller interface.

type Writer

type Writer interface {
	Write(interface{}) error
}

func CSV

func CSV(out io.Writer) Writer

CSV returns a new instance of csv writer.

func NDJSON

func NDJSON(out io.Writer) Writer

NDJSON returns new ndjson Writer.

Jump to

Keyboard shortcuts

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