Documentation ¶ Index ¶ type Book func Create(path string, title string, artist string, language string) (*Book, error) func Open(path string) (*Book, error) func (book *Book) Add(sources []string) error func (book *Book) GetPage(index int) (io.ReadCloser, error) func (book *Book) GetPageName(index int) string func (book *Book) Pages() int func (book *Book) Remove(pages []int) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Book ¶ type Book struct { Title string Artist string Language string // contains filtered or unexported fields } func Create ¶ func Create(path string, title string, artist string, language string) (*Book, error) func Open ¶ func Open(path string) (*Book, error) func (*Book) Add ¶ func (book *Book) Add(sources []string) error func (*Book) GetPage ¶ func (book *Book) GetPage(index int) (io.ReadCloser, error) func (*Book) GetPageName ¶ func (book *Book) GetPageName(index int) string func (*Book) Pages ¶ func (book *Book) Pages() int func (*Book) Remove ¶ func (book *Book) Remove(pages []int) error Source Files ¶ View all Source files book.go Click to show internal directories. Click to hide internal directories.