Sign in
go
/
tools
/
376db57240db1206c484ac8f7c3257422be08047
/
.
/
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
)
}