github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/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) }