Goland Cannot use ‘err‘ (type error) as the type any

Goland Cannot use ‘err‘ (type error) as the type any_第1张图片

问题描述:

用Goland写代码的时候,使用panic总是报错,官方用法也是报错,最后找到官方回复的链接,https://youtrack.jetbrains.com/issue/GO-12179/Cannot-use-err-type-error-as-the-type-any

问题解决方式:

Update the IDE instance to the latest available version: 2021.3.4.

就是升级你的GoLand升级到2021.3.4,好像要一个一个版本的升级

你可能感兴趣的:(Golan)