Goland 引用报错 “Unresolved Reference”

4,636 阅读1分钟

问题描述

goland 报错Unresolved Reference,但是程序本身逻辑没有错误,使用terminal能够正常的编译和运行,确认了golang本身环境没有问题

问题原因

残留的cache没有去除,需要刷新

问题解决

goland 选项File -> Invalidate Caches / Restart,之后重启goland问题即可解决

原帖

GoLand (JetBrains) shows error message “Unresolved Reference”. But Code compiles and runs