print

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 5 Imported by: ? 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

View Source
var NoFinalMessages = []string{} //nolint:gochecknoglobals

NoFinalMessages can be used by callers of PrintFooter to indicate that the command has no final messages to print.

Functions

func DryRunMessage

func DryRunMessage()

DryRunMessage prints the dry-run message.

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 bool, commandsCount int, 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

This section is empty.

Jump to

Keyboard shortcuts

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