log

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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

func Askf(msg string, masked bool, v ...interface{})

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 Error

func Error(msg string)

Error prints an error message

func Errorf added in v0.2.1

func Errorf(msg string, v ...interface{})

Errorf prints an error message with optional format verbs

func Info

func Info(msg string)

Info prints information

func Infof

func Infof(msg string, v ...interface{})

Infof prints information with optional format verbs

func Plain

func Plain(msg string)

Plain prints a plain message without any prefix symbol

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.

func Printf

func Printf(msg string, v ...interface{})

Printf prints an normal message

func Success

func Success(msg string)

Success prints a success message

func Successf

func Successf(msg string, v ...interface{})

Successf prints a success message with optional format verbs

func Warnf

func Warnf(msg string, v ...interface{})

Warnf prints a warning message with optional format verbs

Types

This section is empty.

Jump to

Keyboard shortcuts

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