1
0
mirror of https://github.com/golang/go synced 2024-10-02 00:18:32 -06:00
go/refactor/eg/testdata/A.template

14 lines
230 B
Plaintext
Raw Normal View History

// +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) }