code: func collectFiles(location string) ([]string, error) {
  	log.Debug("collecting templates from " + location)
  	result := []string{}
  
  	paths, err := filepath.Glob(location)
  	if err != nil {
  		log.Error(err.Error())
  		return nil, err
  	}
  
  	for _, path := range paths {
  		isDir, err := isDirectory(path)
  		if err != nil {
  			log.Error(err.Error())
  			return nil, err
  		}
  
  		if !isDir {
  			result = append(result, path)
  		}
  	}
  
  	return result, nil
  }
docs: // Collect all files for come location.