summaryrefslogtreecommitdiff
path: root/main.go
blob: 4ac4e61801ced27f6d7a75da81b1ad7ed9b3ce38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)
	}
}