Go’s environment variables can be accessed through the go envCommand view. Download PKG installation package officiallyġ) The following contents need to be removed when uninstalling, and the upgrade needs to be reinstalled after uninstalling.
Download PKG installation package officially (blocked, may need some skills…)Īfter downloading, click Install, no brain next step, only need to input the system password once in the middle.Ģ、 Verify that the installation is successful after installationģ、 The difference between the two methodsġ) Upgrade and uninstall with the following commandĢ. Homebrew Installation (easy to upgrade and uninstall, recommended)Ģ. Gopls is introduced by vscode, calling Microsoft’s official language server protocol (LSP) The extension of go includes many functions of go tools For example: godef, goimports, gocode, etc.ġ、 There are mainly two ways of installationġ. Go modules, a dependency package management tool released by go after 1.11, is used in the tutorial And gopls is used to manage go code to make vscode write go code more smoothly. I’d like to summarize and sort out the related tutorials and provide a Mac OS tutorial suitable for today. So far, go language has been updated to 1.14.1.