console

package
v8.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Complete

func Complete()

Complete shows a completion message.

func Debug

func Debug(message string, args ...interface{})

Debug shows a debug message

func Fail

func Fail(message string, args ...interface{})

Fail shows a error message

func Fatal

func Fatal(message string, args ...interface{})

Fatal aborts the executable with a error message

func FinishStep

func FinishStep(code int)

FinishStep shows a step completion message.

func GetEmojiWidth

func GetEmojiWidth() int64

GetEmojiWidth Detects handling of emoji

func Info

func Info(message string, args ...interface{})

Info shows a info message

func Log

func Log(destination *os.File, message string, args ...interface{})

Log shows a output message

func LogWithIcon

func LogWithIcon(destination *os.File, icon, message string, args ...interface{})

LogWithIcon shows a message with a custom icon

func SpacedEmoji

func SpacedEmoji(emoji string) string

SpacedEmoji returns an emoji with a trailing space

func Success

func Success(message string, args ...interface{})

Success shows a success message

func Warn

func Warn(message string, args ...interface{})

Warn shows a warning message

func WrapOutput

func WrapOutput(output string) string

WrapOutput indents output to align to emojis.

Types

This section is empty.

Jump to

Keyboard shortcuts

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