Documentation ¶
Overview ¶
formatter reformats strings
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIndentWriter ¶
Types ¶
type FailedDirective ¶
type FailedDirective struct {
// contains filtered or unexported fields
}
func (FailedDirective) Details ¶
func (i FailedDirective) Details() string
func (FailedDirective) Pos ¶ added in v0.2.0
func (i FailedDirective) Pos() token.Pos
func (FailedDirective) Position ¶
func (i FailedDirective) Position() token.Position
func (FailedDirective) String ¶
func (i FailedDirective) String() string
type FormatIssue ¶
type FormatIssue struct {
// contains filtered or unexported fields
}
func (FormatIssue) Details ¶
func (i FormatIssue) Details() string
func (FormatIssue) Length ¶
func (i FormatIssue) Length() int
func (FormatIssue) Pos ¶ added in v0.2.0
func (i FormatIssue) Pos() token.Pos
func (FormatIssue) Position ¶
func (i FormatIssue) Position() token.Position
func (FormatIssue) Replacement ¶
func (i FormatIssue) Replacement() string
func (FormatIssue) String ¶
func (i FormatIssue) String() string
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func NewFormatter ¶
func NewFormatter() *Formatter
type Issue ¶
func ApplyReplacements ¶
type IssueWithReplacement ¶
type SortIssue ¶
type SortIssue struct {
// contains filtered or unexported fields
}
func (SortIssue) Replacement ¶
type UnknownDirective ¶
type UnknownDirective struct {
// contains filtered or unexported fields
}
func (UnknownDirective) Details ¶
func (i UnknownDirective) Details() string
func (UnknownDirective) Pos ¶ added in v0.2.0
func (i UnknownDirective) Pos() token.Pos
func (UnknownDirective) Position ¶
func (i UnknownDirective) Position() token.Position
func (UnknownDirective) String ¶
func (i UnknownDirective) String() string
type UnusedDirective ¶
type UnusedDirective struct {
// contains filtered or unexported fields
}
func (UnusedDirective) Details ¶
func (i UnusedDirective) Details() string
func (UnusedDirective) Pos ¶ added in v0.2.0
func (i UnusedDirective) Pos() token.Pos
func (UnusedDirective) Position ¶
func (i UnusedDirective) Position() token.Position
func (UnusedDirective) String ¶
func (i UnusedDirective) String() string
Click to show internal directories.
Click to hide internal directories.