export

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPath added in v1.20.3

func ExpandPath(filePath string) (string, error)

ExpandPath expands leading ~ to user's home directory.

func ExportQueryResult

func ExportQueryResult(result *db.QueryResult, format ExportFormat, filePath string) (string, *errors.XError)

func ExportReport added in v1.20.3

func ExportReport(content string, filePath string) (string, *errors.XError)

ExportReport writes the Markdown/text report content to the target file path.

Types

type ExportFormat

type ExportFormat string
const (
	FormatCSV  ExportFormat = "csv"
	FormatJSON ExportFormat = "json"
)

Jump to

Keyboard shortcuts

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