exporter

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCSV

func ToCSV(w io.Writer, data any) error

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

func ToJSON

func ToJSON(w io.Writer, data any) 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

type Exporter

type Exporter func(w io.Writer, data any) error

Exporter is a function that takes a writer and data and exports it to a file.

Jump to

Keyboard shortcuts

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