Documentation
¶
Index ¶
- func Close()
- func Debug(msg string, args ...any)
- func DebugPretty(msg string, args ...any)
- func Error(msg string, args ...any)
- func ErrorIfErr(err error, context string, args ...any) bool
- func Fatal(msg string, args ...any)
- func FatalIfErr(err error, context string, args ...any)
- func Init(DEBUG_MENTION, DEBUG_WEBHOOK string)
- func Success(msg string, args ...any)
- func SuccessPretty(msg string, args ...any)
- func Warn(msg string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugPretty ¶
Doesn't log anything, but prints in the pretty debug color
func ErrorIfErr ¶
"While {CONTEXT}: {ERROR}" Returns true if err != nil, intended for inline usage: if ErrorIfErr(err, "context here (%s)", "stuff") { return }
func FatalIfErr ¶
"While {CONTEXT}: {ERROR}"
func SuccessPretty ¶
Doesn't log anything, but prints in the pretty success color
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.