format

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 BlockMessage(title string, content []string)

func BoxError

func BoxError(msg string, str string)

func BoxExample

func BoxExample()

func BoxInfo

func BoxInfo(msg string, str string)

func BoxMessage

func BoxMessage(msg string, str string, l1 int, l2 int)

func BoxNote

func BoxNote(msg string, str string)

func BoxSuccess

func BoxSuccess(msg string, str string)

func BoxWarning

func BoxWarning(msg string, str string)

func ColorTextLength

func ColorTextLength(ctx string) int

func ContentLeftAlign

func ContentLeftAlign(ctx string, length int) string

func DrawBlockLine

func DrawBlockLine(length int, s1 string, s2 string, s3 string)

func Error

func Error(msg string)

func ErrorMessage

func ErrorMessage(error string, msg string)

func Example

func Example()

func FileLogger

func FileLogger(src string)

func Info

func Info(msg string)

func InfoMessage

func InfoMessage(info string, msg string)

func LogErorr

func LogErorr(msg string)

func LogExample

func LogExample()

func LogInfo

func LogInfo(msg string)

func LogNote

func LogNote(msg string)

func LogSuccess

func LogSuccess(msg string)

func LogWarning

func LogWarning(msg string)

func MaxLength

func MaxLength(s []string) int

func Note

func Note(msg string)

func NoteMessage

func NoteMessage(note string, msg string)

func Success

func Success(msg string)

func SuccessMessage

func SuccessMessage(success string, msg string)

func TimerStart

func TimerStart() *timer

func Timestamp

func Timestamp() string

func TitleMiddleAlign

func TitleMiddleAlign(ctx string, length int) string

func UnixTime

func UnixTime() int64

func Warning

func Warning(msg string)

func WarningMessage

func WarningMessage(warning string, msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL