github.com/huandu/go@v0.0.0-20151114150818-04e615e41150/doc/progs/eff_unused2.go (about) 1 package main 2 3 import ( 4 "fmt" 5 "io" 6 "log" 7 "os" 8 ) 9 10 var _ = fmt.Printf // For debugging; delete when done. 11 var _ io.Reader // For debugging; delete when done. 12 13 func main() { 14 fd, err := os.Open("test.go") 15 if err != nil { 16 log.Fatal(err) 17 } 18 // TODO: use fd. 19 _ = fd 20 }