| 1 | package A2 |
|---|---|
| 2 | |
| 3 | // This refactoring causes addition of "errors" import. |
| 4 | // TODO(adonovan): fix: it should also remove "fmt". |
| 5 | |
| 6 | import ( |
| 7 | "errors" |
| 8 | myfmt "fmt" |
| 9 | ) |
| 10 | |
| 11 | func example(n int) { |
| 12 | errors.New("") |
| 13 | } |
| 14 |
Members
| 1 | package A2 |
|---|---|
| 2 | |
| 3 | // This refactoring causes addition of "errors" import. |
| 4 | // TODO(adonovan): fix: it should also remove "fmt". |
| 5 | |
| 6 | import ( |
| 7 | "errors" |
| 8 | myfmt "fmt" |
| 9 | ) |
| 10 | |
| 11 | func example(n int) { |
| 12 | errors.New("") |
| 13 | } |
| 14 |