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) } |
12 |
Members
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) } |
12 |