book

package
v0.0.0-...-08022fe Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	XMLName    xml.Name `xml:"http://www.gribuser.ru/xml/fictionbook/2.0 author"`
	FirstName  string   `xml:"first-name"`
	MiddleName string   `xml:"middle-name"`
	LastName   string   `xml:"last-name"`
}

type Book

type Book struct {
	XMLName  xml.Name `xml:"http://www.gribuser.ru/xml/fictionbook/2.0 title-info"`
	Author   []Author `xml:"http://www.gribuser.ru/xml/fictionbook/2.0 author"`
	Title    string   `xml:"http://www.gribuser.ru/xml/fictionbook/2.0 book-title"`
	Lang     string   `xml:"lang"`
	Genres   []string `xml:""`
	Archive  string
	FileName string
}

type Storager

type Storager interface {
	AddBook(*Book) error
	Search() error
	List() error
}

Jump to

Keyboard shortcuts

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