mirror of
https://github.com/golang/go
synced 2024-11-19 06:24:41 -07:00
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) }
|