...

Source file src/golang.org/x/tools/refactor/eg/testdata/A2.go

Documentation: golang.org/x/tools/refactor/eg/testdata

     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  }
    11  

View as plain text