func NewPool(downloaders []Downloader) *Pool { p := &Pool{} var d []interface{} for _, downloader := range downloaders { d = append(d, downloader) } p.pool = pool.New(d) return p }
func NewPool(processors []PageProcessor) *Pool { p := &Pool{} var voids []interface{} for _, pro := range processors { voids = append(voids, pro) } p.pool = pool.New(voids) return p }
func NewPool(analysers []Analyser) *Pool { p := &Pool{} var voids []interface{} for _, ays := range analysers { voids = append(voids, ays) } p.pool = pool.New(voids) return p }