IntelliJ reports an error on my import stating that package contains test files only and asks me to delete the import.
It also doesn't recognize the object.
CodePudding user response:
containernetworking/plugins/pkg/ns
directory has _linux.go
namespaces so you should configure the corresponding OS if that differs from your main one in GoLand settings: Preferences | Go | Build Tags & Vendoring (set OS to Linux).