Prioritize imports with gopls

55 Views Asked by At

Is there any way to specifically set what imports for gopls (the Go language server) to prioritize?

For example, when adding an "assert" in a new test file, I always want github.com/stretchr/testify/assert and never atomicgo.dev/assert but gopls seems to just randomly import one that fits and I need to manually change it afterwards.

0

There are 0 best solutions below