console

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package console provides console UI utilities.

Index

Constants

View Source
const FallbackWidth = 80

FallbackWidth is used when stdout is not a terminal, so the banner still wraps to something sane when output is piped or captured.

Variables

This section is empty.

Functions

func Render

func Render(width int, views ...View) string

Render returns the exit banner for the given style.

Types

type View

type View func(width int) string

View is a view of the exit banner.

func Error

func Error(err error) View

Error returns the error section of the exit banner.

func Success

func Success(msg string) View

Success returns the success section of the exit banner.

Jump to

Keyboard shortcuts

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