Documentation ¶
Index ¶
- Variables
- func Debug(prefix string, message ...interface{})
- func DebugToFile()
- func Debugf(prefix string, format string, message ...interface{})
- func GetColorFormat(color, style Attribute, text string) string
- func NewCustomColor(debugStyle DebugStyle, timeStyle TimeStyle)
- func NewDebugStyle(prefix, message string) string
- func NewTimeStyle() string
- type Attribute
- type CustomColor
- type CustomFile
- type DebugStyle
- type TimeStyle
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableCustomColor bool
Enable custome color
View Source
var FileSave bool
setup log output to a file
Functions ¶
func Debug ¶
func Debug(prefix string, message ...interface{})
Print debug message to os.StdOut without save it to a file
func GetColorFormat ¶
return a formatted color based on the chosen Attribute for specific text
func NewCustomColor ¶
func NewCustomColor(debugStyle DebugStyle, timeStyle TimeStyle)
func NewDebugStyle ¶
func NewTimeStyle ¶
func NewTimeStyle() string
Types ¶
type Attribute ¶
type Attribute int
Attribute defines a single SGR Code
type CustomColor ¶
type CustomColor struct { DebugStyle TimeStyle }
var CustomColorStyle CustomColor
type CustomFile ¶
type DebugStyle ¶
Click to show internal directories.
Click to hide internal directories.