1package template 2 3// Basic test of type-aware expression refactoring. 4 5import ( 6 "errors" 7 "fmt" 8) 9 10func before(s string) error { return fmt.Errorf("%s", s) } 11func after(s string) error { return errors.New(s) }
View as plain text