console

package
v0.0.0-...-620b93c Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 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(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 a instance of ideaConsole

Jump to

Keyboard shortcuts

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