Conditions | 4 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package producer |
||
26 | func (p *DictionaryProducer) Produce() <-chan scan.Target { |
||
27 | targets := make(chan scan.Target, 10) |
||
28 | |||
29 | go func() { |
||
30 | defer close(targets) |
||
31 | |||
32 | for _, entry := range p.dictionary { |
||
33 | for _, method := range p.methods { |
||
34 | targets <- scan.Target{ |
||
35 | Path: entry, |
||
36 | Method: method, |
||
37 | Depth: p.depth, |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 | }() |
||
42 | |||
43 | return targets |
||
44 | } |
||
45 |