Installing packages when using GOPATH
To install the missing package, click the package declaration, press &shortcut:ShowIntentionActions;, and select go get -t <package_name>.
This approach works for projects that use GOPATH.