ui

package
v2.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: MIT Imports: 8 Imported by: 53 modules, 214 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

Index

Constants

This section is empty.

Variables

Functions

func Errorf

func Errorf(format string, a ...interface{}) (n int)

func Errorln

func Errorln(a ...interface{}) (n int)

func Expand

func Expand(format string, values map[string]string, colorize bool) string

Expand expands a format string using `git log` message syntax.

func IsTerminal

func IsTerminal(f *os.File) bool

func Print

func Print(a ...interface{}) (n int)

func Printf

func Printf(format string, a ...interface{}) (n int)

func Println

func Println(a ...interface{}) (n int)

Types

type Console

type Console struct {
	Stdout io.Writer
	Stderr io.Writer
}

func (Console) Errorf

func (c Console) Errorf(format string, a ...interface{}) (n int, err error)

func (Console) Errorln

func (c Console) Errorln(a ...interface{}) (n int, err error)

func (Console) Print

func (c Console) Print(a ...interface{}) (n int, err error)

func (Console) Printf

func (c Console) Printf(format string, a ...interface{}) (n int, err error)

func (Console) Println

func (c Console) Println(a ...interface{}) (n int, err error)

type UI

type UI interface {
	Print(a ...interface{}) (n int, err error)
	Printf(format string, a ...interface{}) (n int, err error)
	Println(a ...interface{}) (n int, err error)
	Errorf(format string, a ...interface{}) (n int, err error)
	Errorln(a ...interface{}) (n int, err error)
}

Jump to

Keyboard shortcuts

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