ing
This commit is contained in:
parent
a07f717d52
commit
73c6a1309f
|
@ -63,14 +63,6 @@ func addCrawler(c oopcc.Crawler) {
|
|||
crawlers[c.Name()] = c
|
||||
}
|
||||
|
||||
func GetCrawler(name string) oopcc.Crawler {
|
||||
c, ok := crawlers[name]
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
func GetCrawlers() map[string]oopcc.Crawler {
|
||||
return crawlers
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user