Except that Go is for command line programs and backend code; its standard library doesn't include a cross-platform GUI API for desktop applications.
Free Pascal/Lazarus has no problem with Linux or macOS. It was Delphi that stumbled around for some years about this, but presently can also be installed now on both. Of course, Delphi cost the big bucks.