Documentation
¶
Index ¶
- Constants
- Variables
- func BlockMessage(title string, content []string)
- func BoxError(msg string, str string)
- func BoxExample()
- func BoxInfo(msg string, str string)
- func BoxMessage(msg string, str string, l1 int, l2 int)
- func BoxNote(msg string, str string)
- func BoxSuccess(msg string, str string)
- func BoxWarning(msg string, str string)
- func ColorTextLength(ctx string) int
- func ContentLeftAlign(ctx string, length int) string
- func DrawBlockLine(length int, s1 string, s2 string, s3 string)
- func Error(msg string)
- func ErrorMessage(error string, msg string)
- func Example()
- func FileLogger(src string)
- 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 Note(msg string)
- func NoteMessage(note string, msg string)
- func Success(msg string)
- func SuccessMessage(success string, msg 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)
Constants ¶
View Source
const ( TopLeft = "╭" TopMiddle = "┬" TopRight = "╮" MiddleLeft = "├" MiddleCenter = "┼" MiddleRight = "┤" HLine = "─" VLine = "│" BottomLeft = "╰" BottomMiddle = "┴" BottomRight = "╯" )
Variables ¶
View Source
var (
FormatStringBuilder = strings.Builder{}
)
Functions ¶
func BlockMessage ¶
func BoxExample ¶
func BoxExample()
func BoxSuccess ¶
func BoxWarning ¶
func ColorTextLength ¶
func ContentLeftAlign ¶
func ErrorMessage ¶
func FileLogger ¶
func FileLogger(src string)
func InfoMessage ¶
func LogExample ¶
func LogExample()
func LogSuccess ¶
func LogSuccess(msg string)
func LogWarning ¶
func LogWarning(msg string)
func NoteMessage ¶
func SuccessMessage ¶
func TimerStart ¶
func TimerStart() *timer
func TitleMiddleAlign ¶
func WarningMessage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.