export

package
v0.3.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package export provides functionality to export data in various formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCSV

func ToCSV(results []*models.Result, filename string) error

ToCSV exports a slice of Result structs to a CSV file.

func ToGnuplot

func ToGnuplot(results []*models.Result, filename string) error

ToGnuplot exports a slice of Result structs to a Gnuplot compatible .dat file.

func ToGnuplotBasic

func ToGnuplotBasic(results []*models.Result, filename string) error

ToGnuplotBasic exports a slice of Result structs to a Gnuplot compatible .dat file.

func ToJSON

func ToJSON(data any, filename string) error

ToJSON takes an interface and attempts to marshal it into JSON format, then write to a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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