Reputation: 41
I am working with GoLand (JetBrains IDE for golang) accessing the AWS services with the corresponding SDK. Every time I'm using a service client for the first time I want to use the "auto-import" feature of GoLand to import the SDK. The IDE then offers to import .../aws-sdk-go/...
(see image below). But there is already a new version of the AWS SDK GO, namely .../aws-sdk-go-v2/...
. Right now I let GoLand import V1 and change the go.mod file afterwards by updating the corresponding line to V2.
Is there a way to tell GoLand to only suggest imports for V2 instead of V1?
Thank for your help!
Upvotes: 0
Views: 280
Reputation: 7477
You can add imports you want to omit from completion/imports from Settings/Preferences | Go | Imports | Exclude from import and completion
.
Upvotes: 1