type Mode int
Mode describes the open-mode of a stream
const ( Read Mode = Mode(os.O_RDONLY) Write Mode = Mode(os.O_WRONLY) )
type Stream struct { Name string // input|output file name Mode Mode // read|write }
Stream defines an input or output hbook stream