github.com/jhump/golang-x-tools@v0.0.0-20220218190644-4958d6d39439/refactor/eg/testdata/A.template (about) 1 package template 2 3 // Basic test of type-aware expression refactoring. 4 5 import ( 6 "errors" 7 "fmt" 8 ) 9 10 func before(s string) error { return fmt.Errorf("%s", s) } 11 func after(s string) error { return errors.New(s) }