1
0
mirror of https://github.com/golang/go synced 2024-10-01 12:48:33 -06: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) }