terminal

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package terminal provides rich terminal output with colors and styling

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

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

Renderer provides rich terminal output using templates and styling

func New

func New(w io.Writer) (*Renderer, error)

New creates a new terminal renderer

func (*Renderer) RenderError

func (r *Renderer) RenderError(err error) error

RenderError renders an error with appropriate formatting

func (*Renderer) RenderMessage

func (r *Renderer) RenderMessage(msg string) error

RenderMessage renders a simple message

func (*Renderer) RenderResult

func (r *Renderer) RenderResult(result interface{}) error

RenderResult renders any result type with rich terminal formatting

Jump to

Keyboard shortcuts

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