package main import ( "fmt" "log" "os" ) func main() { fd, err := os.Open("teapot.dat") if err != nil { log.Fatal(err) } defer fd.Close() b := Parse(fd) for _, v := range b { fmt.Println(v) } }