Documentation ¶ Overview ¶ Package output provides response formatting and syntax highlighting. Index ¶ func Highlight(raw string, contentType string, noColor bool) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Highlight ¶ func Highlight(raw string, contentType string, noColor bool) string Highlight applies syntax highlighting and pretty-printing to the given raw string based on content type. If noColor is true or stdout is not a TTY, it returns pretty-printed output without colors. Types ¶ This section is empty. Source Files ¶ View all Source files highlight.go Click to show internal directories. Click to hide internal directories.