The goland cannot locate some public functions and variables in some thrid library.

已完成

I am using netlink, a network library from github. The IDE can find some functions such as LinkList(), while it cannot locate others, such as RuleList() and nl.FAMILY_V4.

The version of library is correct. And when i open the library source file by clicking the left mouse button on the functions can be locate, the functions and variables which the IDE cannot locate are right there.

So wired...

Error Image:

Goland Version Info: 

GoLand 2021.2.2
Build #GO-212.5080.74, built on August 31, 2021
Runtime version: 11.0.11+9-b1504.16 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: suggest.all.run.configurations.from.context=true, ide.completion.variant.limit=500, go.run.processes.with.pty=false
Non-Bundled Plugins: Statistic (4.1.7), com.ypwang.plugin.go-linter (1.5.5)

0

Fixed...My development is based on windows, while the missing functions are linux-based. So i change 【Settings】-【Build Tags & Vendoring】-【OS】from windowns to linux, and the problem is fixed.

1

请先登录再写评论。