Versions in this module Expand all Collapse all v1 v1.1.0 May 27, 2023 Changes in this version + func NewBlock(header, block, footer string, opts ...Option) string type Option + func NoFrame() Option + func NoReset() Option v1.0.0 May 27, 2023 Changes in this version + var ErrUnsupportedColor = errors.New("unsupported color") + func AvailableColors() []string + func New(text string, opts ...Option) string + type Color string + type ColorFunc func() Option + func GetColorFunc(color string) (ColorFunc, error) + type Option struct + func Black() Option + func Blue() Option + func BrightBlack() Option + func BrightBlue() Option + func BrightCyan() Option + func BrightGreen() Option + func BrightMagenta() Option + func BrightRed() Option + func BrightWhite() Option + func BrightYellow() Option + func Cyan() Option + func Green() Option + func Magenta() Option + func Red() Option + func White() Option + func WithChar(c rune) Option + func WithFrame(left, right rune) Option + func WithLength(l int) Option + func Yellow() Option