console

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Errorf = func(format string, a ...any) {
	_, err := fmt.Fprintf(os.Stderr, format, a...)
	if err != nil {
		panic(err)
	}
}

Errorf defines an (overridable) function for printing to the console via stderr.

View Source
var Print = func(a ...any) {
	fmt.Print(a...)
}
View Source
var Printf = func(format string, a ...any) {
	fmt.Printf(format, a...)
}

Printf defines an (overridable) function for printing to the console via stdout.

View Source
var Println = func(values ...any) {
	for _, value := range values {
		Printf("%v\n", value)
	}
}

Println prints a line with optional values to the console.

Functions

func CreateProgressBar added in v0.18.0

func CreateProgressBar(description string) *progressbar.ProgressBar

CreateProgressBar creates a new progress bar with the given description and defaults adjusted to zed's UX experience

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳