Documentation ¶
Index ¶
- Variables
- func Askf(msg string, masked bool, v ...interface{})
- func Debug(msg string, v ...interface{})
- func Error(msg string)
- func Errorf(msg string, v ...interface{})
- func Info(msg string)
- func Infof(msg string, v ...interface{})
- func Plain(msg string)
- func Plainf(msg string, v ...interface{})
- func PrintContent(content string)
- func Printf(msg string, v ...interface{})
- func Success(msg string)
- func Successf(msg string, v ...interface{})
- func Warnf(msg string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ColorRed is a red foreground color ColorRed = color.New(color.FgRed) // ColorGreen is a green foreground color ColorGreen = color.New(color.FgGreen) // ColorYellow is a yellow foreground color ColorYellow = color.New(color.FgYellow) // ColorBlue is a blue foreground color ColorBlue = color.New(color.FgBlue) // ColorGray is a gray foreground color ColorGray = color.New(color.FgHiBlack) )
Functions ¶
func Askf ¶ added in v0.6.0
Askf prints an question with optional format verbs. The leading symbol differs in color depending on whether the input is masked.
func Debug ¶ added in v0.4.3
func Debug(msg string, v ...interface{})
Debug prints to the console if DNOTE_DEBUG is set
func Errorf ¶ added in v0.2.1
func Errorf(msg string, v ...interface{})
Errorf prints an error message with optional format verbs
func Infof ¶
func Infof(msg string, v ...interface{})
Infof prints information with optional format verbs
func Plainf ¶
func Plainf(msg string, v ...interface{})
Plainf prints a plain message without any prefix symbol. It takes optional format verbs.
func PrintContent ¶ added in v0.6.0
func PrintContent(content string)
PrintContent prints the note content with an appropriate format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.