common

package
v0.0.0-...-40d7aee Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: LGPL-2.1 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLoggerWriter io.Writer = NewLogWriter(logger.DefaultLogger)
View Source
var TAsiaShanghai = time.FixedZone("UTC+8", 8*3600)
View Source
var VHandle = template.FuncMap{
	"add": vAdd,
}

Functions

func InitConfig

func InitConfig(file, ext string, config interface{}, withdefault bool, init func(interface{}) error) error

filepath ext

func InitLogger

func InitLogger(names ...LogOpt)

func NewLogWriter

func NewLogWriter(zapx *logger.ZapX) io.Writer

Types

type LogOpt

type LogOpt struct {
	Name    string
	Console bool
	Level   zapcore.Level
	Path    string
}

Jump to

Keyboard shortcuts

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