term

package
Version: v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 3

README

term

Colorful terminal printer and scanner

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Env = _env.FromHost()
View Source
var Interactive = true

Functions

func Ask

func Ask(prompt string, defaultYes bool) bool

func Confirm

func Confirm(prompt string)

func Errorln

func Errorln(i ...interface{})

func ExitOnError

func ExitOnError(err error)

func Fatalln

func Fatalln(i ...interface{})

func Infoln

func Infoln(i ...interface{})

func List

func List(items []string) (int, string)

func Print

func Print(args ...interface{})

func Printf

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

func Println

func Println(args ...interface{})

func Read

func Read(prompt string) string

func ReadMasked

func ReadMasked(prompt string) string

func Successln

func Successln(i ...interface{})

func Warningln

func Warningln(i ...interface{})

Types

type NullLogger

type NullLogger struct{}

A /dev/null logger for GRPC

func (*NullLogger) Fatal

func (g *NullLogger) Fatal(args ...interface{})

func (*NullLogger) Fatalf

func (g *NullLogger) Fatalf(format string, args ...interface{})

func (*NullLogger) Fatalln

func (g *NullLogger) Fatalln(args ...interface{})

func (*NullLogger) Print

func (g *NullLogger) Print(args ...interface{})

func (*NullLogger) Printf

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

func (*NullLogger) Println

func (g *NullLogger) Println(args ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL