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("") }
func main() { flag.Parse() f := croot.OpenFile(*fname, "recreate", "my event file", 1, 0) tree0(f) f.Close("") }