output

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(message string, plaintext, jsonOut bool)

Error outputs an error message

func Info

func Info(message string, plaintext, jsonOut bool)

Info outputs an informational message

func JSON

func JSON(data interface{})

JSON outputs data as JSON

func Success

func Success(message string, plaintext, jsonOut bool)

Success outputs a success message

func Table

func Table(data TableData, plaintext, jsonOut bool)

Table outputs data in table format

Types

type TableData

type TableData struct {
	Headers []string
	Rows    [][]string
}

TableData represents data for table output

Jump to

Keyboard shortcuts

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