Ejemplo n.º 1
0
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
}
Ejemplo n.º 2
0
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

}
Ejemplo n.º 3
0
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
}