Documentation ¶
Index ¶
Constants ¶
View Source
const SupportsColorEscapes = true
Variables ¶
This section is empty.
Functions ¶
func ComputeLineAndColumn ¶
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func NewDeferLog ¶
func NewStderrLog ¶
func NewStderrLog(options StderrOptions) (Log, func() MsgCounts)
func (Log) AddRangeWarning ¶
type Msg ¶
func (Msg) String ¶
func (msg Msg) String(options StderrOptions, terminalInfo TerminalInfo) string
type Source ¶
type StderrColor ¶
type StderrColor uint8
const ( ColorIfTerminal StderrColor = iota ColorNever ColorAlways )
type StderrOptions ¶
type StderrOptions struct { IncludeSource bool ErrorLimit int ExitWhenLimitIsHit bool Color StderrColor }
type TerminalInfo ¶
func GetTerminalInfo ¶ added in v0.3.0
func GetTerminalInfo(file *os.File) (info TerminalInfo)
Click to show internal directories.
Click to hide internal directories.