filexporter

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatYAML = "yaml"
	FormatJSON = "json"
	FormatCSV  = "csv"
)

Variables

This section is empty.

Functions

func Export

func Export(format string, data interface{}, path, fileName string) error

Export will export the given data into specified file format, if not specified then it will using default json file format

func ExportCSV

func ExportCSV(data interface{}, path, fileName string) error

ExportCSV is quick call to export the given data into csv file data must be a slice of struct otherwise will error

func ExportJSON

func ExportJSON(data interface{}, path, fileName string) error

ExportJSON is quick call to export the given data into json file

func ExportYaml

func ExportYaml(data interface{}, path, fileName string) error

ExportYaml is quick call to export the given data into yaml file

Types

This section is empty.

Jump to

Keyboard shortcuts

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