github.com/april1989/origin-go-tools@v0.0.32/refactor/eg/testdata/A.template (about) 1 // +build ignore 2 3 package template 4 5 // Basic test of type-aware expression refactoring. 6 7 import ( 8 "errors" 9 "fmt" 10 ) 11 12 func before(s string) error { return fmt.Errorf("%s", s) } 13 func after(s string) error { return errors.New(s) }