Documentation ¶
Index ¶
- Constants
- func Wrap(v string, format Format, fg FgColor, bg BgColor) string
- func WrapBlack(v string) string
- func WrapBlue(v string) string
- func WrapCyan(v string) string
- func WrapGreen(v string) string
- func WrapRed(v string) string
- func WrapWhite(v string) string
- func WrapWithFgColor(v string, fg FgColor) string
- func WrapYellow(v string) string
- type BgColor
- type FgColor
- type Format
Constants ¶
View Source
const ( SimplePrefixBlack = "\033[22;30m" // 黑 SimplePrefixRed = "\033[22;31m" // 红 SimplePrefixGreen = "\033[22;32m" // 浅绿,亮绿 SimplePrefixYellow = "\033[22;33m" // 黄 SimplePrefixBlue = "\033[22;34m" // 深蓝 SimplePrefixCyan = "\033[22;36m" // 青,暗绿 SimplePrefixWhite = "\033[22;37m" // 白 SimpleSuffix = suffix )
Variables ¶
This section is empty.
Functions ¶
func WrapWithFgColor ¶
WrapWithFgColor 只设置前景色(字体颜色)
func WrapYellow ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.