console

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v1.0.7

func Debug(format string, a ...any)

func Error added in v1.0.7

func Error(format string, a ...any)

func Fatalln added in v1.0.7

func Fatalln(format string, a ...any)

func Info added in v1.0.7

func Info(format string, a ...any)

func MarkDone added in v1.0.7

func MarkDone()

func Must added in v1.0.7

func Must(err error)

func Success added in v1.0.7

func Success(format string, a ...any)

func Warning added in v1.0.7

func Warning(format string, a ...any)

Types

type Console

type Console interface {
	Success(format string, a ...any)
	Info(format string, a ...any)
	Debug(format string, a ...any)
	Warning(format string, a ...any)
	Error(format string, a ...any)
	Fatalln(format string, a ...any)
	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(enable ...bool) 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 an instance of ideaConsole

Jump to

Keyboard shortcuts

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