Documentation ¶
Index ¶
- Variables
- func Ask(prompt string, defaultYes bool) bool
- func Confirm(prompt string)
- func Errorln(i ...interface{})
- func ExitOnError(err error)
- func Fatalln(i ...interface{})
- func Infoln(i ...interface{})
- func List(items []string) (int, string)
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func Read(prompt string) string
- func ReadMasked(prompt string) string
- func Successln(i ...interface{})
- func Warningln(i ...interface{})
- type NullLogger
- func (g *NullLogger) Fatal(args ...interface{})
- func (g *NullLogger) Fatalf(format string, args ...interface{})
- func (g *NullLogger) Fatalln(args ...interface{})
- func (g *NullLogger) Print(args ...interface{})
- func (g *NullLogger) Printf(format string, args ...interface{})
- func (g *NullLogger) Println(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Env = _env.FromHost()
View Source
var Interactive = true
Functions ¶
func ExitOnError ¶
func ExitOnError(err error)
func ReadMasked ¶
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{})
Click to show internal directories.
Click to hide internal directories.