Sign in
go
/
tools
/
65196caeed0001ac363270d53feaf62d9b90873f
/
.
/
refactor
/
eg
/
testdata
/
I.template
blob: b8e8f939b10073f950dc70cac97529f84fba2bd5 [
file
] [
log
] [
blame
]
package
templates
import
(
"errors"
"fmt"
)
func before
(
s
string
)
error
{
return
fmt
.
Errorf
(
"%s"
,
s
)
}
func after
(
s
string
)
error
{
n
:=
fmt
.
Sprintf
(
"error - %s"
,
s
)
return
errors
.
New
(
n
)
}