1
0
mirror of https://github.com/golang/go synced 2024-11-19 06:24:41 -07:00
go/refactor/eg/testdata/E.template

13 lines
230 B
Plaintext
Raw Normal View History

package template
import (
"fmt"
"log"
"os"
)
// Replace call to void function by call to non-void function.
func before(x interface{}) { log.Fatal(x) }
func after(x interface{}) { fmt.Fprintf(os.Stderr, "warning: %v", x) }