Documentation ¶
Overview ¶
Package utils is used for functions that are used in multiple locations
Index ¶
- Variables
- func LogErrorDefaultFormat(packageName, callerName string, err error, action string)
- func LogFatalDefaultFormat(packageName, callerName string, err error, action string)
- func LogPanicDefaultFormat(packageName, callerName string, err error, action string)
- func NewLogger(lvl log.Level) *log.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *log.Logger
Functions ¶
func LogErrorDefaultFormat ¶
LogErrorDefaultFormat is used to print errors in a uniform way
func LogFatalDefaultFormat ¶
LogFatalDefaultFormat is used to print errors in a uniform way, and exit with a Panic
func LogPanicDefaultFormat ¶
LogPanicDefaultFormat is used to print errors in a uniform way, and exit with a Panic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.