Documentation ¶
Index ¶
- Constants
- func BlockMessage(title string, content []string)
- func BoxError(_title string, _content string)
- func BoxExample()
- func BoxInfo(_title string, _content string)
- func BoxMessage(_title string, _content string, l1 int, l2 int)
- func BoxNote(_title string, _content string)
- func BoxSuccess(_title string, _content string)
- func BoxWarning(_title string, _content string)
- func Check(err error)
- func ColorTextLength(ctx string) int
- func ContentLeftAlign(ctx string, length int) string
- func DrawBlockLine(length int, s1 string, s2 string, s3 string)
- func DrawTableContent(content []string, length []int)
- func DrawTableLine(length []int, left string, seq string, split string, right string)
- func Error(_msg string)
- func ErrorMessage(error string, _msg string)
- func Example()
- func Info(_msg string)
- func InfoMessage(info string, _msg string)
- func LogErorr(_msg string)
- func LogExample()
- func LogInfo(_msg string)
- func LogNote(_msg string)
- func LogSuccess(_msg string)
- func LogWarning(_msg string)
- func MaxLength(s []string) int
- func Must(err error)
- func Note(_msg string)
- func NoteMessage(_note string, _msg string)
- func Recover()
- func SingleLogger(src string)
- func StringLen(s string) int
- func Success(_msg string)
- func SuccessMessage(success string, _msg string)
- func TableMessage(_title []string, _content [][]string)
- func TimerStart() *timer
- func Timestamp() string
- func TitleMiddleAlign(ctx string, length int) string
- func UnixTime() int64
- func Warning(_msg string)
- func WarningMessage(warning string, _msg string)
- type LogOption
Constants ¶
View Source
const ( TopLeft = "╭" TopMiddle = "┬" TopRight = "╮" MiddleLeft = "├" MiddleCenter = "┼" MiddleRight = "┤" HLine = "─" VLine = "│" BottomLeft = "╰" BottomMiddle = "┴" BottomRight = "╯" )
Variables ¶
This section is empty.
Functions ¶
func BlockMessage ¶
func BoxExample ¶
func BoxExample()
func BoxSuccess ¶
func BoxWarning ¶
func ColorTextLength ¶
func ContentLeftAlign ¶
func DrawTableContent ¶
func DrawTableLine ¶
func ErrorMessage ¶
func InfoMessage ¶
func LogExample ¶
func LogExample()
func LogSuccess ¶
func LogSuccess(_msg string)
func LogWarning ¶
func LogWarning(_msg string)
func NoteMessage ¶
func SingleLogger ¶
func SingleLogger(src string)
func SuccessMessage ¶
func TableMessage ¶
func TimerStart ¶
func TimerStart() *timer
func TitleMiddleAlign ¶
func WarningMessage ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.