Documentation
¶
Index ¶
- func FuncCost(start time.Time, printer Printer)
- func GetDateAgo(ago int64, format ...string) string
- func GetTimeFromTimestamp(tm int64, format ...string) string
- func LogModule(module string, fields ...map[string]interface{}) *logrus.Entry
- func LogWithCtx(ctx context.Context, module string, fields ...map[string]interface{}) *logrus.Entry
- func RunPeriod(interval time.Duration, handler func(), closeCh ...chan struct{})
- type EUnit
- type Printer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeFromTimestamp ¶
GetTimeFromTimestamp 根据时间戳打印对应的日期
func LogWithCtx ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.