mirror of
https://github.com/golang/go
synced 2024-11-06 00:36:14 -07:00
bfcffc697d
See refactor/eg/eg.go for details. LGTM=crawshaw R=crawshaw, gri, kamil.kisiel, josharian CC=golang-codereviews https://golang.org/cl/81010043
14 lines
230 B
Plaintext
14 lines
230 B
Plaintext
// +build ignore
|
|
|
|
package template
|
|
|
|
// Basic test of type-aware expression refactoring.
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
func before(s string) error { return fmt.Errorf("%s", s) }
|
|
func after(s string) error { return errors.New(s) }
|