Documentation
¶
Index ¶
Constants ¶
View Source
const NumSpacesPerIndent = 1
Variables ¶
This section is empty.
Functions ¶
func FormatBytes ¶
Types ¶
type Formatter ¶
type Formatter struct {
}
func NewFormatter ¶
func NewFormatter() *Formatter
type Tokens ¶
type Tokens []*Token
func (Tokens) Columns ¶
Columns returns the number of columns (grapheme clusters) the token sequence occupies. The result is not meaningful if there are newline or single-line comment tokens in the sequence.
Click to show internal directories.
Click to hide internal directories.