mirror of
https://github.com/golang/go
synced 2024-11-18 14:44:41 -07:00
bfcffc697d
See refactor/eg/eg.go for details. LGTM=crawshaw R=crawshaw, gri, kamil.kisiel, josharian CC=golang-codereviews https://golang.org/cl/81010043
16 lines
215 B
Plaintext
16 lines
215 B
Plaintext
// +build ignore
|
|
|
|
package A2
|
|
|
|
// This refactoring causes addition of "errors" import.
|
|
// TODO(adonovan): fix: it should also remove "fmt".
|
|
|
|
import (
|
|
myfmt "fmt"
|
|
"errors"
|
|
)
|
|
|
|
func example(n int) {
|
|
errors.New("")
|
|
}
|