github.com/yukk001/go1.10.8@v0.0.0-20190813125351-6df2d3982e20/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 }