exporters

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportDataToJSON

func ExportDataToJSON(data interface{}, path string) error

Types

type Exporter

type Exporter struct {
	FilePath string
}

Exporter is a struct for exporting data from a database in a convenient format. It provides methods to export data to various formats such as JSON, CSV, etc.

func NewExporter

func NewExporter(path string) *Exporter

func (Exporter) ToJSON

func (e Exporter) ToJSON(data interface{}) error

ToJSON converts structured data from QueryBuilder into json format.

Jump to

Keyboard shortcuts

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