code: func IsFile(path string) bool {
  	s, err := os.Stat(path)
  	if err != nil {
  		return false
  	}
  	return s.Mode().IsRegular()
  }
docs: /////////////////////////////// Common utilities ///////////////////////////////
  // IsFile returns true if path is a file