export

package
v0.9.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 6 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(benchmarks []*models.Benchmark, filename string) (string, error)

ToCSV exports a slice of Benchmark structs to a CSV file. An empty filename will create a temporary file.

func ToJSON

func ToJSON(data any, filename string) (string, error)

ToJSON takes an interface and attempts to marshal it into JSON format, then write to a file. An empty filename will create a temporary file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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