github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/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  }