()
| 35 | } |
| 36 | |
| 37 | func ProcessGists() { |
| 38 | threadNum := *session.Options.Threads |
| 39 | |
| 40 | for i := 0; i < threadNum; i++ { |
| 41 | go func(tid int) { |
| 42 | for { |
| 43 | gistUrl := <-session.Gists |
| 44 | processRepositoryOrGist(gistUrl) |
| 45 | } |
| 46 | }(i) |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func processRepositoryOrGist(url string) { |
| 51 | var ( |
no test coverage detected