Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶
type Parser interface { // Chapter parse chapter page Chapter(url string) (map[string]interface{}, error) // Comic parse comic main page return useful information Comic(url string) (map[string]interface{}, error) // Filename get picture name from url Filename(string) string // Label return name + domain Label() string // Less compare two chapters' title Less(string, string) bool // Match check chapter title match input index or not Match(int, string) bool // Search search title in website and return the url of matched comic Search(string) (string, error) }
Parser is the interface to wrap website methods
Click to show internal directories.
Click to hide internal directories.