ui

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Printf

func Printf(format string, args ...interface{})

func SetDefaultUI

func SetDefaultUI(newUI UI)

func Warnf

func Warnf(format string, args ...interface{})

Types

type CommandLine

type CommandLine struct {
	Out    io.Writer
	Errout io.Writer
}

func (*CommandLine) Errorf

func (c *CommandLine) Errorf(format string, args ...interface{})

func (*CommandLine) Infof

func (c *CommandLine) Infof(format string, args ...interface{})

func (*CommandLine) Printf

func (c *CommandLine) Printf(format string, args ...interface{})

func (*CommandLine) Warnf

func (c *CommandLine) Warnf(format string, args ...interface{})

type UI

type UI interface {
	Printf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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