model

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToSlash added in v0.1.1

func ToSlash(path string) string

Types

type Author added in v0.2.0

type Author struct {
	LastName   string
	FirstName  string
	MiddleName string
}

func (Author) FormattedName added in v0.2.3

func (a Author) FormattedName(format string) string

func (Author) Initials added in v0.2.0

func (a Author) Initials() string

func (Author) Short added in v0.2.0

func (a Author) Short() string

func (Author) String added in v0.2.0

func (a Author) String() string

type Book

type Book struct {
	LibId    string
	Title    string
	Authors  []Author
	Genres   []string
	Series   string
	SeriesNo int
	File     File
	PubDate  time.Time
	Language string
}

func NewBook

func NewBook(book *inpx.Book) *Book

func (*Book) CleanTitle added in v0.2.0

func (b *Book) CleanTitle() string

func (*Book) PubYear added in v0.2.0

func (b *Book) PubYear() string

type File added in v0.2.0

type File struct {
	Name    string
	Size    int
	Ext     string
	Folder  string
	Archive string
}

Jump to

Keyboard shortcuts

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