To install the missing package, click the package declaration, press &shortcut:ShowIntentionActions;, and select go get -t <package_name>.