config

package
v0.0.0-...-5f907a7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BinPath   string
	Portable  bool
	BackColor term.Attribute
	TextColor term.Attribute
	Justify   bool

	// info about last opened book
	// lastPosition and lastLength are used in case of DB is off
	LastFile     string
	LastPosition int
	LastLength   int
	LastError    int

	Lines []string

	UseDb    bool
	DbDriver common.BookDb

	Info fbutils.BookInfo
	// contains filtered or unexported fields
}

func InitConfig

func InitConfig() *Config

func (*Config) InitDatabase

func (conf *Config) InitDatabase()

func (*Config) ReadLastFileInfo

func (conf *Config) ReadLastFileInfo()

func (*Config) SaveLastFileInfo

func (conf *Config) SaveLastFileInfo()

Jump to

Keyboard shortcuts

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