github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/tools/refactor/eg/testdata/A2.go (about)

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