golang.org/x/tools@v0.21.0/refactor/eg/testdata/E.template (about) 1 package template 2 3 import ( 4 "fmt" 5 "log" 6 "os" 7 ) 8 9 // Replace call to void function by call to non-void function. 10 11 func before(x interface{}) { log.Fatal(x) } 12 func after(x interface{}) { fmt.Fprintf(os.Stderr, "warning: %v", x) }