Documentation ¶ Index ¶ func Transform(input string, format Format) (string, error) type Format Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Transform ¶ func Transform(input string, format Format) (string, error) Transform function to highlight an input string. Can return error Types ¶ type Format ¶ type Format string Format Type for the lexer to enable highlighting const ( // YAML Format needed for the lexer to enable highlighting YAML Format = "yaml" // XML Format needed for the lexer to enable highlighting XML Format = "xml" ) Source Files ¶ View all Source files service.go Click to show internal directories. Click to hide internal directories.