console

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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