console

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, a ...interface{})

func Error

func Error(format string, a ...interface{})

func Fatalln

func Fatalln(format string, a ...interface{})

func Info

func Info(format string, a ...interface{})

func MarkDone

func MarkDone()

func Must

func Must(err error)

func Success

func Success(format string, a ...interface{})

func Warning

func Warning(format string, a ...interface{})

Types

type Console

type Console interface {
	Success(format string, a ...interface{})
	Info(format string, a ...interface{})
	Debug(format string, a ...interface{})
	Warning(format string, a ...interface{})
	Error(format string, a ...interface{})
	Fatalln(format string, a ...interface{})
	MarkDone()
	Must(err error)
}

Console wraps from the fmt.Sprintf, by default, it implemented the colorConsole to provide the colorful output to the console and the ideaConsole to output with prefix for the plugin of intellij

func NewColorConsole

func NewColorConsole() Console

NewColorConsole returns an instance of colorConsole

func NewConsole

func NewConsole(idea bool) Console

NewConsole returns an instance of Console

func NewIdeaConsole

func NewIdeaConsole() Console

NewIdeaConsole returns a instance of ideaConsole

Jump to

Keyboard shortcuts

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