internal

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Rd red text style
	Rd = "31"
	// Grn green text style
	Grn = "32"
	// Yel yellow text style
	Yel = "33"
	// Blu blue text style
	Blu = "34"
	// Cyn cyan text style
	Cyn = "36"

	// RdBg red background style
	RdBg = "41"
	// GrnBg green background style
	GrnBg = "42"
	// YelBg yellow background style
	YelBg = "43"
	// BluBg blue background style
	BluBg = "44"

	// B bold emphasis style
	B = "1"
	// U underline emphasis style
	U = "4"
)

Variables

View Source
var (
	Red    = outer(Rd)
	Green  = outer(Grn)
	Yellow = outer(Yel)
	Blue   = outer(Blu)
	Cyan   = outer(Cyn)

	RedBg    = outer(RdBg)
	GreenBg  = outer(GrnBg)
	YellowBg = outer(YelBg)
	BlueBg   = outer(BluBg)

	Bold      = outer(B)
	Underline = outer(U)
)

Functions

func NewComment

func NewComment(fs *token.FileSet, c *ast.Comment) *comment

generate new *comment base on the Comment node

func NewError

func NewError(path string, err error)

represent keywords to highlight

func SetKeyWords

func SetKeyWords(kw []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL