I would like to open a local file, and return a io.Reader. The reason is that I need to feed a io.Reader to a library I am using, like:
io.Reader
os.Open returns an io.Reader
os.Open
http://play.golang.org/p/BskGT09kxL
package main import ( "fmt" "io" "os" ) var _ io.Reader = (*os.File)(nil) func main() { fmt.Println("Hello, playground") }