output

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(format string, data any, tableRenderer func())

func PrintError

func PrintError(w io.Writer, errType string, httpStatus int, operation string, errors any, rawResponse string)

func PrintJSON

func PrintJSON(w io.Writer, data any)

func PrintTable

func PrintTable(w io.Writer, headers []string, rows [][]string)

Types

type ErrorResponse

type ErrorResponse struct {
	Error       string `json:"error"`
	HTTPStatus  int    `json:"http_status,omitempty"`
	Operation   string `json:"operation,omitempty"`
	Errors      any    `json:"errors,omitempty"`
	RawResponse string `json:"raw_response,omitempty"`
}

Jump to

Keyboard shortcuts

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