Documentation ¶
Index ¶
- Constants
- func Cleanup()
- func Debug(message ...interface{})
- func DebugBlue(message ...interface{})
- func DebugCaller(level int)
- func DebugCyan(message ...interface{})
- func DebugGreen(message ...interface{})
- func DebugPink(message ...interface{})
- func DebugPurple(message ...interface{})
- func Err(namespace Namespace, err error, message string)
- func Exit(namespace Namespace, message string)
- func Failure(namespace Namespace, message string)
- func FromMain()
- func NewLine()
- func Panic(namespace Namespace, message string)
- func PanicErr(namespace Namespace, err error, message string)
- func Print(namespace Namespace, message string)
- func Success(namespace Namespace, message string)
- type Namespace
Constants ¶
const ( Main = "main" Router = "router" Access = "access" Config = "config" Database = "database" Email = "email" Flags = "flags" NonProd = "nonprod" Parsing = "parsing" Trip = "trip" User = "user" )
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup()
Cleanup - Close log file Deprecated: DO NOT CALL THIS FUNCTION aside from `cleanup()` in main
func Debug ¶
func Debug(message ...interface{})
Debug - This will print message to the terminal but not
into the log file.
Deprecated: DO NOT COMMIT USE OF THIS FUNCTION.
func DebugBlue ¶
func DebugBlue(message ...interface{})
DebugBlue - Same as `Debug()` but blue Deprecated: DO NOT COMMIT USE OF THIS FUNCTION.
func DebugCaller ¶
func DebugCaller(level int)
DebugCaller - Shows the entire call stack on how the code is reached Deprecated: DO NOT COMMIT USE OF THIS FUNCTION.
func DebugCyan ¶
func DebugCyan(message ...interface{})
DebugCyan - Same as `Debug()` but cyan Deprecated: DO NOT COMMIT USE OF THIS FUNCTION.
func DebugGreen ¶
func DebugGreen(message ...interface{})
DebugGreen - Same as `Debug()` but green Deprecated: DO NOT COMMIT USE OF THIS FUNCTION.
func DebugPink ¶
func DebugPink(message ...interface{})
DebugPink - Same as `Debug()` but pink Deprecated: DO NOT COMMIT USE OF THIS FUNCTION.
func DebugPurple ¶
func DebugPurple(message ...interface{})
DebugPurple - Same as `Debug()` but purple Deprecated: DO NOT COMMIT USE OF THIS FUNCTION.
func Err ¶
Err - Prints message in red indicating its an error
(`if err != nil`) but does not call `panic()` nor ends
the program
func Exit ¶
Exit - This is used for logging in cleanup functions. Calls
here are not guaranteed to be stored into the log files but will always be displayed in the terminal.
func FromMain ¶
func FromMain()
FromMain - Initializing from main Deprecated: DO NOT CALL THIS FUNCTION aside from `cleanup()` in main
func NewLine ¶
func NewLine()
NewLine - Print an empty newline in terminal. Purely aesthetic reason.