github.com/huandu/go@v0.0.0-20151114150818-04e615e41150/doc/progs/eff_unused1.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"io"
     6  	"log"
     7  	"os"
     8  )
     9  
    10  func main() {
    11  	fd, err := os.Open("test.go")
    12  	if err != nil {
    13  		log.Fatal(err)
    14  	}
    15  	// TODO: use fd.
    16  }