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

Use intention actions to go get a package