ui

package
v0.1.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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	JSON bool
	Out  io.Writer
	Err  io.Writer
}

func (Output) Error

func (o Output) Error(err error)

func (Output) Success

func (o Output) Success(message string, data interface{})

func (Output) Table

func (o Output) Table(headers []string, rows [][]string)

type Response

type Response struct {
	OK      bool        `json:"ok"`
	Message string      `json:"message,omitempty"`
	Data    interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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