logutil

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 0 Imported by: 2

README

logutil

Build Status Coverage Status BMC Donate

utilities for log

Credits

Guo Y.K., MIT License

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProgressInvalid = ^int64(0)
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Printf(layout string, items ...interface{})
}

type LoggerFunc

type LoggerFunc func(layout string, items ...interface{})
var (
	DiscardLogger LoggerFunc = func(layout string, items ...interface{}) {}
)

func (LoggerFunc) Printf

func (l LoggerFunc) Printf(layout string, items ...interface{})

type Progress

type Progress interface {
	SetTotal(total int64)
	SetCount(count int64)
	Add(d int64)
	Incr()
}

func NewProgress

func NewProgress(logger Logger, label string) Progress

Jump to

Keyboard shortcuts

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