Documentation ¶
Index ¶
- Variables
- func AddFixer(name string, createFunc FixerCreateFunc)
- func AstToContent(fset *token.FileSet, node interface{}) string
- func ContentToAst(content string) (*token.FileSet, *ast.File, error)
- type AlternativeCallCsFixer
- type CsFixer
- type FileHeaderCsFixer
- type Fixer
- type FixerCreateFunc
- type FixerOptions
- type GroupImportFixer
- type Linter
- type NoNewLineBeforeErrorCsFixer
- type Position
- type Problem
- type Problems
- type UsePathJoinCsFixer
Constants ¶
This section is empty.
Variables ¶
View Source
var FixersMap map[string]FixerCreateFunc
Functions ¶
func AddFixer ¶
func AddFixer(name string, createFunc FixerCreateFunc)
func AstToContent ¶
Types ¶
type AlternativeCallCsFixer ¶
type AlternativeCallCsFixer struct {
// contains filtered or unexported fields
}
func (*AlternativeCallCsFixer) Fix ¶
func (l *AlternativeCallCsFixer) Fix(content string) (string, error)
func (*AlternativeCallCsFixer) Lint ¶
func (l *AlternativeCallCsFixer) Lint(content string) (Problems, error)
func (*AlternativeCallCsFixer) String ¶
func (l *AlternativeCallCsFixer) String() string
type CsFixer ¶
type CsFixer interface { }
func CreateFixer ¶
func CreateFixer(name string, options FixerOptions) (CsFixer, error)
type FileHeaderCsFixer ¶
type FileHeaderCsFixer struct {
// contains filtered or unexported fields
}
func (*FileHeaderCsFixer) String ¶
func (l *FileHeaderCsFixer) String() string
type FixerCreateFunc ¶
type FixerCreateFunc func(options FixerOptions) (CsFixer, error)
type FixerOptions ¶
type FixerOptions map[interface{}]interface{}
type GroupImportFixer ¶
type GroupImportFixer struct {
// contains filtered or unexported fields
}
func (*GroupImportFixer) String ¶
func (l *GroupImportFixer) String() string
type NoNewLineBeforeErrorCsFixer ¶
type NoNewLineBeforeErrorCsFixer struct { }
func (*NoNewLineBeforeErrorCsFixer) Fix ¶
func (l *NoNewLineBeforeErrorCsFixer) Fix(content string) (string, error)
func (*NoNewLineBeforeErrorCsFixer) Lint ¶
func (l *NoNewLineBeforeErrorCsFixer) Lint(content string) (Problems, error)
func (*NoNewLineBeforeErrorCsFixer) String ¶
func (l *NoNewLineBeforeErrorCsFixer) String() string
type UsePathJoinCsFixer ¶
type UsePathJoinCsFixer struct { }
func (*UsePathJoinCsFixer) Lint ¶
func (l *UsePathJoinCsFixer) Lint(content string) (Problems, error)
func (*UsePathJoinCsFixer) String ¶
func (l *UsePathJoinCsFixer) String() string
Click to show internal directories.
Click to hide internal directories.