Versions in this module Expand all Collapse all v0 v0.1.2 Apr 12, 2019 Changes in this version + var Sitepool = []SiteA + func BookInfo(BookURL string) (s *store.Store, err error) + func Chapter(BookURL string) (content []string, err error) + func ChromedpBookInfo(BookURL string, logfile string) (s *store.Store, err error) + func ClosePhantomJS() + func InitPhantomJS() + func PhBookInfo(BookURL string) (s *store.Store, err error) + func PhChapter(BookURL string) (content []string, err error) + func SingleSpace(s string) (r string) + type ChaperSearchResult struct + Author string + BookName string + BookURL string + func Search(s string) (result []ChaperSearchResult, err error) + type ErrMethodMissing struct + Site *SiteA + func (e ErrMethodMissing) Error() string + type ErrUnsupportSite struct + Site string + func (e ErrUnsupportSite) Error() string + type SiteA struct + BookInfo func(body io.Reader) (s *store.Store, err error) + Chapter func(body io.Reader) (content []string, err error) + HomePage string + Match []string + Name string + Search func(s string) (result []ChaperSearchResult, err error) + func MatchOne(pool []SiteA, u string) (*SiteA, error) + func MatchSites(pool []SiteA, u string) ([]SiteA, error)