// Analyse runs license analysis on each item in `args`
Analyse runs license analysis on each item in `args`
// Analyse runs license analysis on each item in ` args `
func Analyse(args ...string) []Result {
	nargs := len(args)
	results := make([]Result, nargs)
	var wg sync.WaitGroup
	wg.Add(nargs)
	for i, arg := range args {
		go func(i int, arg string) {
			defer wg.Done()
			matches, err := process(arg)
			res := Result{Arg: arg, Matches: matches}
			if err != nil {
				res.ErrStr = err.Error()
			}
			results[i] = res
		}(i, arg)
	}
	wg.Wait()
	return results
}
func Analyse ( args ... string ) [ ] Result { nargs := len ( args ) results := make ( [ ] Result , nargs ) var wg sync . WaitGroup wg . Add ( nargs ) for i , arg := range args { go func ( i int , arg string ) { defer wg . Done ( ) matches , err := process ( arg ) res := Result { Arg : arg , Matches : matches } if err != nil { res . ErrStr = err . Error ( ) } results [ i ] = res } ( i , arg ) } wg . Wait ( ) return results }
Analyse runs license analysis on each item in `args`
Analyse runs license analysis on each item in ` args `