console

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string)

Error 打印一条报错消息,红色输出

func Exit

func Exit(msg string)

Exit 打印一条报错信息,并退出 os.Exit(1)

func ExitIf

func ExitIf(err error)

ExitIf 语法糖,自带 err != nil 判断

func Info

func Info(msg string)

func Success

func Success(msg string)

Success 打印一条成功消息,绿色输出

func Warning

func Warning(msg string)

Warning 打印一条报警消息,黄色输出

Types

This section is empty.

Jump to

Keyboard shortcuts

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