print

package
v24.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package print outputs complex data structures to the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

func Entry(label, value string)

func Error

func Error(err error)

Error prints the given error message to the console.

func Footer(verbose configdomain.Verbose, commandsCount gohacks.Counter, finalMessages []string)
func Header(text string)

func LabelAndValue

func LabelAndValue(label, value string)

LabelAndValue prints the label bolded and underlined the value indented on the next line followed by an empty line.

Types

type Logger

type Logger struct{}

The Logger logger logs activities of a particular component on the CLI.

func (Logger) Failed

func (self Logger) Failed(failure string)

func (Logger) Finished

func (self Logger) Finished(err error)

func (Logger) Log

func (self Logger) Log(text string)

func (Logger) Ok

func (self Logger) Ok()

func (Logger) Start

func (self Logger) Start(template string, data ...any)

func (Logger) Success

func (self Logger) Success(message string)

Jump to

Keyboard shortcuts

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