This commit is contained in:
crusader 2018-04-20 00:32:27 +09:00
parent aca4ca25c6
commit 303b89199d

View File

@ -10,12 +10,11 @@ var crawlers map[string]crawler.Crawler
func init() {
crawlers = make(map[string]crawler.Crawler, 0)
addCrawler(discovery.NewCrawler())
}
func addCrawler(c crawler.Crawler) {
crawlers[c.Name()] = c
addCrawler(discovery.NewCrawler())
}
func GetCrawlers() map[string]crawler.Crawler {