You can run and debug your applications with sudo privileges. To run an application with sudo, navigate to the Run/Debug Configurations dialog (Run | Edit Configurations), click the configuration of your application, and select the Run with sudo checkbox.

GoLand tips, #2083