Esempio n. 1
0
func main() {
	flag.Parse()

	croot.RegisterType(&Event{})

	fmt.Printf(":: opening [%s]...\n", *fname)
	f := croot.OpenFile(*fname, "read", "my event file", 1, 0)
	tree0(f)
	f.Close("")

}
Esempio n. 2
0
func main() {
	flag.Parse()
	f := croot.OpenFile(*fname, "recreate", "my event file", 1, 0)
	tree0(f)
	f.Close("")
}