Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notice ¶
var Default Notice = func(message interface{}, statusCode int, progs ...*notice.Progress) error { if len(progs) > 0 && progs[0] != nil { message = `[ ` + tplfunc.NumberFormat(progs[0].Percent, 2) + `% ] ` + echo.Dump(message, false) } if statusCode > 0 { log.Info(message) } else { log.Error(message) } return nil }
Click to show internal directories.
Click to hide internal directories.