Compare with clipboard
Compare text, files or directories and even use the clipboard contents
GoLand has a built-in diff viewer for code, revisions, and even images.
How to use:
Select any pair of files and press ⌘D (macOS) / Ctrl+D (Windows/Linux).
To quickly compare the editor with the clipboard, choose View | Compare with Clipboard.
If you have selected a single file, the IDE will prompt you to select another file to compare it to.