code: func dirList(path string) ([]string, error) {
  	names := []string{}
  	files, err := ioutil.ReadDir(path)
  	if err != nil {
  		log.Printf("Template error: %v", err)
  		return names, nil
  	}
  	for _, f := range files {
  		names = append(names, f.Name())
  	}
  	return names, nil
  }
docs: // dirList returns a list of files in the specified path