mirror of
https://github.com/golang/go
synced 2024-11-06 04:26:11 -07:00
15 lines
213 B
Plaintext
15 lines
213 B
Plaintext
|
// +build ignore
|
||
|
|
||
|
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)
|
||
|
}
|