code: func IsSameFile(path1, path2 string) (same bool, err error) {
  
  	fi1, err := os.Stat(path1)
  
  	switch {
  	case os.IsNotExist(err):
  		return false, nil
  	case err != nil:
  		return
  	}
  
  	fi2, err := os.Stat(path2)
  
  	switch {
  	case os.IsNotExist(err):
  		return false, nil
  	case err != nil:
  		return
  	}
  
  	return os.SameFile(fi1, fi2), nil
  }
docs: // IsSameFile checks if two file paths are the same file