(path ...string)
| 407 | } |
| 408 | |
| 409 | func addImportFn(path ...string) func(*ast.File) bool { |
| 410 | return func(f *ast.File) bool { |
| 411 | fixed := false |
| 412 | for _, p := range path { |
| 413 | if !imports(f, p) { |
| 414 | addImport(f, p) |
| 415 | fixed = true |
| 416 | } |
| 417 | } |
| 418 | return fixed |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | func deleteImportFn(path string) func(*ast.File) bool { |
| 423 | return func(f *ast.File) bool { |
no test coverage detected