code: func IsIgnoredFile(name string) bool {
  	return strings.HasPrefix(name, ".") || // Unix-like hidden files
  		strings.HasSuffix(name, "~") || // vim
  		strings.HasPrefix(name, "#") && strings.HasSuffix(name, "#") // emacs
  }
docs: // IsIgnoredFile returns true if the given filename (which must not have a
  // directory path ahead of it) should be ignored as e.g. an editor swap file.