messagehandle

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: GPL-3.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	Log      = "Log"
	ErrorLog = "Error"
)

log Tag

Variables

View Source
var (
	// IsAddTimeFlag log title add time flag
	IsAddTimeFlag = true
	// IsPrintTipLog Tip log
	IsPrintTipLog = true
	// IsPrintLog Debug log
	IsPrintLog = true
	// IsPrintErrorLog Error log
	IsPrintErrorLog = true
	// TimeFormat date time print format
	TimeFormat = "2006-01-02 15:04:05Z07:00" //time.stdLongYear + '-' + time.stdZeroMonth + '-' + time.stdZeroDay + ' ' +
)

Functions

func ErrorLogPrint

func ErrorLogPrint(msg string)

ErrorLogPrint ...

func ErrorLogPrintf

func ErrorLogPrintf(msg string, a ...interface{})

ErrorLogPrintf ...

func ErrorLogPrintln

func ErrorLogPrintln(msg string, a ...interface{})

ErrorLogPrintln ...

func LogPrint

func LogPrint(msg string)

LogPrint ...

func LogPrintf

func LogPrintf(msg string, a ...interface{})

LogPrintf ...

func LogPrintln

func LogPrintln(msg string, a ...interface{})

LogPrintln ...

func TipLogPirnt

func TipLogPirnt(msg string)

TipLogPirnt ...

func TipPrintf

func TipPrintf(msg string, a ...interface{})

TipPrintf ...

func TipPrintln

func TipPrintln(msg string, a ...interface{})

TipPrintln ...

Types

type ErrorMsg

type ErrorMsg struct {
	ErrorCode code.Code
	// MsgNum    int8
	Msg string
}

ErrorMsg ...

func New

func New() ErrorMsg

New default Error Message

func (*ErrorMsg) Error

func (e *ErrorMsg) Error() string

Jump to

Keyboard shortcuts

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