export

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToJSON

func ToJSON(info *collectors.SystemInfo, pretty bool) (string, error)

ToJSON exports system info as JSON

func ToText

func ToText(info *collectors.SystemInfo) string

ToText exports system info as plain text

func ToYAML

func ToYAML(info *collectors.SystemInfo) (string, error)

ToYAML exports system info as YAML

Types

type ImageExporter

type ImageExporter struct {
	// contains filtered or unexported fields
}

ImageExporter handles exporting system info as images

func NewImageExporter

func NewImageExporter(info *collectors.SystemInfo, cfg *config.Config) (*ImageExporter, error)

NewImageExporter creates a new image exporter

func (*ImageExporter) ToHTML

func (e *ImageExporter) ToHTML(outputPath string) error

ToHTML exports system info as an HTML file

func (*ImageExporter) ToPNG

func (e *ImageExporter) ToPNG(outputPath string) error

ToPNG exports system info as a PNG image

func (*ImageExporter) ToSVG

func (e *ImageExporter) ToSVG(outputPath string) error

ToSVG exports system info as an SVG image

Jump to

Keyboard shortcuts

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