console

package
v0.0.0-...-f8d5985 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func Fatalln

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

func Info

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

func MarkDone

func MarkDone()

func Must

func Must(err error)

func Success

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

func Warning

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