Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseFixing ¶
type BaseFixing struct {
// contains filtered or unexported fields
}
BaseFixing implements Fixing.
func (*BaseFixing) Finally ¶
func (f *BaseFixing) Finally() error
Finally writes the fixed content to the file.
func (*BaseFixing) ReplaceText ¶
func (f *BaseFixing) ReplaceText(line int, old, new string)
ReplaceText replaces the text at the line.
type Fixer ¶
type Fixer interface { // NOTE: This method is insufficient to process unexpected multi-line contents. ReplaceText(line int, old, new string) }
Fixer provides the ways to operate the proto content.
Click to show internal directories.
Click to hide internal directories.