Sign in
go
/
tools
/
01c78d57fd55de785fbf5656608ca386dc1f863b
/
.
/
refactor
/
eg
/
testdata
/
A.template
blob: f6119618b4ff718039552678d2c47d5d44d23e8a [
file
] [
log
] [
blame
]
// +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
)
}