Documentation ¶
Index ¶
- func DisableFormatting()
- func EnableFormatting()
- func Fprintf(w io.Writer, input string, a ...interface{}) error
- func Fprintln(w io.Writer, input string)
- func NewLine()
- func Parse(input string) (string, error)
- func Printf(input string, a ...interface{}) error
- func Println(input string)
- func Sprintf(input string, a ...interface{}) string
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableFormatting ¶ added in v0.2.0
func DisableFormatting()
func EnableFormatting ¶ added in v0.2.0
func EnableFormatting()
func NewLine ¶ added in v0.4.0
func NewLine()
NewLine prints a new line to the terminal with no content
func Parse ¶
Parse converts the input string (containing TML tags) into a string containing ANSI escape code sequences for output to the terminal.
func Printf ¶
Printf works like fmt.Printf, but adds the option of using tags to apply colour or text formatting to the written text. For example "<red>some red text</red>". A full list of tags is available here: https://github.com/liamg/tml
func Println ¶
func Println(input string)
Println works like fmt.Println, but adds the option of using tags to apply colour or text formatting to the written text. For example "<red>some red text</red>". A full list of tags is available here: https://github.com/liamg/tml
func Sprintf ¶
Sprintf works like fmt.Sprintf, but adds the option of using tags to apply colour or text formatting to the written text. For example "<red>some red text</red>". A full list of tags is available here: https://github.com/liamg/tml