Manage multiple Go versions on Mac

Original link: https://liqiang.io/post/2AWBmQUGDn0byF6baiSXUBQ3spfqZBb3

Because there are many projects to be maintained, and because of the different historical backgrounds of these projects, some may be written by yourself, and some may be taken over from others, so one of the problems currently facing is that the Go version may be inconsistent, but, you I don’t dare to upgrade to a consistent version rashly, after all, the test coverage is not enough to give me the confidence to do so.

Therefore, at the current stage, I still maintain the Go version specified by the project, so there is a need to use multiple Go versions locally. Although this article is talking about the Mac environment, in fact, it should also be figured out in the Linux environment.

This article is reprinted from: https://liqiang.io/post/2AWBmQUGDn0byF6baiSXUBQ3spfqZBb3
This site is for inclusion only, and the copyright belongs to the original author.