comic

package
v0.0.0-...-4ae7f04 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchComic

func SearchComic(website, title string) (string, error)

SearchComic function return the real url about the comic from the website

Types

type Chapter

type Chapter struct {
	URL    string
	Title  string
	Ctitle string
	// contains filtered or unexported fields
}

Chapter contains chapter informations

func NewChapter

func NewChapter(url string) (*Chapter, error)

NewChapter create chapter instance

func (*Chapter) Download

func (c *Chapter) Download() (map[string]string, error)

Download download this chapter resource to disk

func (*Chapter) Home

func (c *Chapter) Home(paths ...string) (string, error)

Home reset chapter home directory

type Comic

type Comic struct {
	URL      string
	Title    string
	Chapters map[string]string
	Summary  string
	Cover    string
	Ctitles  []string
	Latest   string
	Date     string
	// contains filtered or unexported fields
}

Comic contains comic informations

func NewComic

func NewComic(url string) (*Comic, error)

NewComic create comic instance

func (*Comic) Download

func (c *Comic) Download(nums ...int)

Download download resource to disk

func (*Comic) DownloadCover

func (c *Comic) DownloadCover(s ...float64) error

DownloadCover download cover image to disk

func (*Comic) Home

func (c *Comic) Home(paths ...string) (string, error)

Home reset comic home directory

func (*Comic) Len

func (c *Comic) Len() int

func (*Comic) Less

func (c *Comic) Less(i, j int) bool

func (*Comic) Swap

func (c *Comic) Swap(i, j int)

Jump to

Keyboard shortcuts

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