Package quickfix provides functions for fixing Go ASTs that are well typed but "go build" refuses to build.
QuickFix a file set.
RevertQuickFix a file set.
Config for quickfix.
QuickFix rewrites AST files of same package so that they pass go build. For example:
v declared but not used -> append `_ = v` "p" imported but not used -> rewrite to `import _ "p"` no new variables on left side of := -> rewrite `:=` to `=`
TODO implement hardMode, which removes errorneous code rather than adding
QuickFixOnce apply the fixes once.
RevertQuickFix reverts possible quickfixes introduced by QuickFix. This may result to non-buildable source, and cannot reproduce the original code before prior QuickFix. For example:
`_ = v` -> removed `import _ "p"` -> rewritten to `import "p"`
ErrCouldNotLocate represents a file not found error.
ErrorList represents a collection of errors.
|cmd/goquickfix||The goquickfix command quick fixes Go source that is well typed but go refuses to compile e.g.|