app

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Forward()
	Back()
	NextChapter()
	PrevChapter()

	PageNavigator() nav.PageNavigator
	Exit()
	Run()
	Err() error
}

func NewApp

func NewApp(b *epub.Rootfile, bookpath string, opt *Option) Application

NewApp creates an App

type Bookmark added in v0.0.7

type Bookmark struct {
	Chapter int `json:"chapter"`
	ScrollY int `json:"scroll_y"`
}

type Mark

type Mark struct {
	Chapter int                  `json:"chapter"`
	ScrollY int                  `json:"scroll_y"`
	Marks   map[string]*Bookmark `json:"marks"`
}

type Option

type Option struct {
	DebugMode  bool
	NoBlank    bool
	GlobalHook bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL