comic

package
v0.0.0-...-b6f2c68 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskUser

func AskUser(question string) bool

func CreateThumbnail

func CreateThumbnail(filename string)

Types

type Comic

type Comic struct {
	// contains filtered or unexported fields
}

func NewComic

func NewComic(pages []*Page) Comic

func (*Comic) AddPage

func (c *Comic) AddPage(p *Page)

func (*Comic) ConnectPages

func (c *Comic) ConnectPages()

func (*Comic) Get10LastComicPagesNewestFirst

func (c *Comic) Get10LastComicPagesNewestFirst() []*Page

func (*Comic) GetPages

func (c *Comic) GetPages() []*Page

func (*Comic) LastPage

func (c *Comic) LastPage() *Page

type Page

type Page struct {
	Id, PageNumber                                  int
	Title, Description, Path, ImgUrl, DisqusId, Act string
	// contains filtered or unexported fields
}

func NewPage

func NewPage(
	title string,
	description string,
	path string,
	imgUrl string,
	disqusId string,
	act string) *Page

func NewPageFromFilename

func NewPageFromFilename(filename string) *Page

func (*Page) FSPath

func (p *Page) FSPath() string

func (*Page) GetAct

func (p *Page) GetAct() string

func (*Page) GetDateFromFSPath

func (p *Page) GetDateFromFSPath() string

func (*Page) GetDescription

func (p *Page) GetDescription() string

func (*Page) GetDisqusId

func (p *Page) GetDisqusId() string

func (*Page) GetDisqusIdentifier

func (p *Page) GetDisqusIdentifier() string

func (*Page) GetImageFilename

func (p *Page) GetImageFilename() string

func (*Page) GetImgUrl

func (p *Page) GetImgUrl() string

func (*Page) GetMeta

func (p *Page) GetMeta() [][]string

func (*Page) GetNavi

func (p *Page) GetNavi() [][]string

func (*Page) GetPath

func (p *Page) GetPath() string

func (*Page) GetProdUrl

func (p *Page) GetProdUrl() string

func (*Page) GetThumnailUrl

func (p *Page) GetThumnailUrl() string

func (*Page) GetTitle

func (p *Page) GetTitle() string

func (*Page) IsLast

func (p *Page) IsLast() bool

func (*Page) SetRels

func (p *Page) SetRels(first *Page, prev *Page, next *Page, last *Page)

func (*Page) UrlToNext

func (p *Page) UrlToNext() string

type Pages

type Pages struct {
	Pages []*Page
}

Jump to

Keyboard shortcuts

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