func (d *directiveParser) LoadFiles(paths []string) error {
	d.lock.Lock()
	defer d.lock.Unlock()
	filenames, err := pathsToFileGlobs(paths)
	if err != nil {
		return err
	}
	for _, filename := range filenames {
		ranges := d.parseFile(filename)
		sort.Sort(ranges)
		d.files[filename] = ranges
	}
	return nil
}
func (d *directiveParser) LoadFiles(paths []string) error {
	d.lock.Lock()
	defer d.lock.Unlock()
	filenames, err := pathsToFileGlobs(paths)
	if err != nil {
		return err
	}
	for _, filename := range filenames {
		ranges := d.parseFile(filename)
		sort.Sort(ranges)
		d.files[filename] = ranges
	}
	return nil
}
func ( d * directiveParser ) LoadFiles ( paths [ ] string ) error { d . lock . Lock ( ) defer d . lock . Unlock ( ) filenames , err := pathsToFileGlobs ( paths ) if err != nil { return err } for _ , filename := range filenames { ranges := d . parseFile ( filename ) sort . Sort ( ranges ) d . files [ filename ] = ranges } return nil }
// LoadFiles from a list of directories
LoadFiles from a list of directories