Setting up debugging environment for gogland
Run -> Edit configurations -> Default -> Go Application Run kind to package Package path to your main src file like main Setup debugging environment by right click project folder -> Build and Run And then create debug icon as shown in the figure