Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(msg string)
- func Debugf(msg string, args ...interface{})
- func Error(msg string)
- func Errorf(msg string, args ...interface{})
- func Exit(code int, msg string, args ...interface{}) cli.ExitCoder
- func Format(err error) string
- func Info(msg string)
- func Infof(msg string, args ...interface{})
- func IsVerbose(ctx context.Context) bool
- func PInfof(picto, msg string, args ...interface{})
- func Print(msg string)
- func Printf(msg string, args ...interface{})
- func Prompt(question string, constraints ...string) (string, error)
- func SetOutput(w, errw io.Writer)
- func SetVerbose(parent context.Context, value bool) context.Context
- func Warn(msg string)
- func Warnf(msg string, args ...interface{})
- func YesOrNo(question string) (string, error)
Constants ¶
View Source
const ( Yes = "y" No = "n" )
View Source
const PictoBottle = "🍾"
View Source
const PictoCalendar = "📅"
View Source
const PictoCert = "📜"
View Source
const PictoCoffee = "☕"
View Source
const PictoFinish = "🏁"
View Source
const PictoGhost = "👻"
View Source
const PictoHumidity = "💧"
View Source
const PictoKey = "🔑"
View Source
const PictoNotebook = "📒"
View Source
const PictoPin = "📌"
View Source
const PictoPolice = "👮"
View Source
const PictoStop = "🚫"
View Source
const PictoThermometer = "🌡"
View Source
const PictoTicket = "🎟 "
View Source
const PictoTree = "🌲"
View Source
const PictoWoman = "👩"
Variables ¶
View Source
var ( Yellow = color.New(color.FgYellow).SprintFunc() Red = color.New(color.FgRed).SprintFunc() Green = color.New(color.FgGreen).SprintFunc() White = color.New(color.FgHiWhite).SprintFunc() Bold = color.New(color.Bold).SprintFunc() )
Available ANSI colors
View Source
var Trace bool
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.