Documentation
¶
Index ¶
- Constants
- func Capitalize(s string) string
- func Cyan(s string) string
- func DescribeOpposite(tok *token.Token) string
- func DescribePos(token *token.Token) string
- func DescribeTok(tok *token.Token) string
- func Emph(s string) string
- func EmphType(s string) string
- func ErrorFont(s string) string
- func ExtractFileName(s string) string
- func Flatten(s string) string
- func FlattenedFilename(s string) string
- func GetTextWithBarsAsList(text string) ([]string, bool)
- func Green(s string) string
- func Head(s, substr string) bool
- func HighlightLine(plainLine string, highlighter rune) (string, rune)
- func MakeFilepath(scriptFilepath string) string
- func Pretty(s string, lMargin, rMargin int) string
- func ReadChar() rune
- func Red(s string) string
- func StripColors(s string) string
- func Tail(s, substr string) bool
- func ToEscapedText(s string) string
- func Trim(path string) string
- func TweakNameAndPath(name, path, source string) (string, string)
- func WithoutDots(s string) string
- func Yellow(s string) string
- type Markdown
Constants ¶
View Source
const ( RESET = "\033[0m" RESET_FOREGROUND = "\033[39m" RESET_BACKGROUND = "\033[49m" RESET_BOLD = "\033[22m" RESET_ITALIC = "\033[23m" RESET_UNDERLINE = "\033[24m" UNDERLINE = "\033[4m" RED = "\033[31m" BAD_RED = "\033[38;2;244;71;71m" YELLOW = "\033[33m" GREEN = "\033[32m" BLUE = "\033[34m" PURPLE = "\033[35m" CYAN = "\033[36m" GRAY = "\033[37m" INLINE_CODE_BACKGROUND = "\033[48;2;0;0;64m" WHITE = "\033[97m" ITALIC = "\033[3m" BOLD = "\033[1m" BULLET = " ▪ " MASK = '▪' RT_ERROR = "<R>Error</>: " ERROR = "<R>Error</>: " ORANGE = "\033[38;2;255;165;0m" )
Variables ¶
This section is empty.
Functions ¶
func DescribeOpposite ¶
func DescribePos ¶
func DescribeTok ¶
Describes a token for the purposes of error messages etc.
func ExtractFileName ¶
func FlattenedFilename ¶
func GetTextWithBarsAsList ¶
func MakeFilepath ¶
func StripColors ¶
func ToEscapedText ¶
func TweakNameAndPath ¶
func WithoutDots ¶
Types ¶
type Markdown ¶
type Markdown struct {
// contains filtered or unexported fields
}
func NewMarkdown ¶
Click to show internal directories.
Click to hide internal directories.