Skip to content

rolandhe/saber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang常用工具,包括

日志支持

logger.Logger接口抽象类saber框架需要的日志功能,提供debug、info、error三种级别的日志输出,缺省实现调用标准库的log包输出,你可以实现自己的日志输出。

type Logger interface {
	Debug(format string, v ...any)
	DebugLn(v ...any)

	Info(format string, v ...any)
	InfoLn(v ...any)

	Error(format string, v ...any)
	ErrorLn(v ...any)
}

About

golang常用工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published