golang.org/x/tools@v0.21.0/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) }