mirror of
https://github.com/golang/go
synced 2024-11-05 15:06:09 -07:00
bfcffc697d
See refactor/eg/eg.go for details. LGTM=crawshaw R=crawshaw, gri, kamil.kisiel, josharian CC=golang-codereviews https://golang.org/cl/81010043
13 lines
230 B
Plaintext
13 lines
230 B
Plaintext
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) }
|