golang.org/x/tools@v0.21.0/refactor/eg/testdata/A2.go (about)

     1  package A2
     2  
     3  // This refactoring causes addition of "errors" import.
     4  // TODO(adonovan): fix: it should also remove "fmt".
     5  
     6  import myfmt "fmt"
     7  
     8  func example(n int) {
     9  	myfmt.Errorf("%s", "")
    10  }