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 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 Red(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
Constants ¶
View Source
const ( RESET = "\033[0m" UNDERLINE = "\033[3m" RED = "\033[31m" GREEN = "\033[32m" YELLOW = "\033[33m" BLUE = "\033[34m" PURPLE = "\033[35m" CYAN = "\033[36m" GRAY = "\033[37m" WHITE = "\033[97m" BULLET = " ▪ " RT_ERROR = "$Error$" ERROR = "$Error$" )
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 ToEscapedText ¶
func Trim ¶
Removes the last two folders in a filepath. TODO --- is there a more principled way of doing this?
func TweakNameAndPath ¶
func WithoutDots ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.