英文:
Do I need to upgrade to the newest version of Go?
问题
我在产品环境中使用的是go1.14.11版本,目前一切正常。但是在1.14.11之后发布了很多版本,其中大部分都包含了一些安全修复。
我想知道是否需要升级到最新版本的Go?如果我继续使用go1.14.11会有什么大问题吗?
英文:
I use go1.14.11 in my product environment, it works fine until now.
But there have been so many versions after 1.14.11, most of them have some security fixes.
I wonder if I need to upgrade to the newest version of Go? Is there any big problem if I keep with go1.14.11?
答案1
得分: 5
Go团队支持最后两个主要版本。目前为止,这两个版本是1.16和1.15。
这意味着1.14不再接收安全补丁,你应该升级。请注意,Go有非常严格的向后兼容政策,所以升级是很容易的。
英文:
The Go team supports the last two major versions. At the time of writing those are 1.16 and 1.15.
This means 1.14 does not receive security patches anymore and you should upgrade. Note that Go has a very strict backward compatibility policy, so upgrading is easy.
答案2
得分: 4
如果我继续使用go1.14.11会有什么大问题吗?
是的。Go团队维护并发布最新的两个主要版本的安全更新,目前是1.16和1.15。不再发布针对1.14的更新。
这意味着如果您使用Go 1.14构建应用程序,并且在其代码中发现了安全漏洞,您的应用程序将容易受到攻击。只有在Go SDK中修复了这些新发现的漏洞并重新构建应用程序时,您才能获得对其的保护。正如上面提到的,这只能是任何受支持的版本之一,即Go 1.16或1.15。
除了安全修复之外,更新版本的Go往往更快。因此,通过使用更新版本,您通常可以获得更好的性能(更快的应用程序),而无需改进/优化应用程序中的任何内容。没有理由不使用随时可用的最新版本。
英文:
> Is there any big problem if I keep with go1.14.11?
Yes. The Go team maintains and releases security updates for the 2 latest major versions, which currently are 1.16 and 1.15. There are no updates to 1.14 released anymore.
This means if you've built your app using Go 1.14 and a security bug is discovered in its code, your app will be vulnerable to it. You can only get protection for those newly discovered bugs if they get fixed in the Go SDK and you rebuild your app with a version that contains that fix. And as mentioned above, that can only be any of the supported version, that is, any of Go 1.16 or 1.15.
Beyond the security fixes, newer versions of Go tend to be faster. So using newer versions you often get better performance (faster apps) just by using them, without improving / optimizing anything in your app. There is no reason not to use the latest version available at any time.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论