common

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//ColorCyan text color
	ColorCyan = 0
	//ColorGreen text color
	ColorGreen = 2
	//ColorYellow text color
	ColorYellow = 3

	//LogInfo log info level
	LogInfo = 0
	//LogWarning log warring level
	LogWarning = 1
	//LogError log error level
	LogError = 2
)

Variables

This section is empty.

Functions

func Print

func Print(function interface{}, a ...interface{})

Print print info by IsPrint

func PrintClass

func PrintClass(a interface{})

PrintClass turns class to json string

func PrintColor

func PrintColor(co int, function interface{}, v ...interface{})

PrintColor print info by IsPrint

func PrintError

func PrintError(function interface{}, v ...interface{})

PrintError prints err msg to stdout.

func PrintFatal

func PrintFatal(function interface{}, v ...interface{})

PrintFatal prints message and followed bt exit calling.

func PrintInfo

func PrintInfo(function interface{}, v ...interface{})

PrintInfo print info by IsPrint

func PrintWarning

func PrintWarning(function interface{}, v ...interface{})

PrintWarning print info by IsPrint

Types

This section is empty.

Jump to

Keyboard shortcuts

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