This is the 26th day of my participation in the August Text Challenge.More challenges in August

Background: Installation and uninstallation of go environment, go1.12 was installed before, now the project needs to install GO1.13. So what you need to do is uninstall and then install

This article introduces the following problems

  1. Uninstall the GO environment

  2. Install the GO environment

  3. Go integration development tool — Install the GO plug-in on IDEA

  4. Go integrated development tool –GoLand

 


 

  1. Uninstall the GO environment

A. Delete the go directory in /usr/local

Note: This directory is automatically generated when you install GO. If you run the go version command, the go command cannot be found

B. Delete the Path environment variable

Note: Here, I only want to close a version, so goPath is still needed, so don’t delete it

C. Delete configuration file information: Delete bin Settings in /etc/profile or /home/.profile or /home/.profile or /home/bahs_profile

D. Delete the installation file of the MAC OS X installation package and the /etc/paths.d/go file

I only used the first step, reinstall, and continued to use the rest

 

  1. Go to install

A. Download the latest version of go1.13.4. Darwin -amd64.pkg. Download it at studygolang.com/dl

B. Install all the devices by default

C. View the installation result: Go version

D. Set environment variables

Subsequent complement

 

Go integrated development tool — Install go plug-in on Idea

Step 1: On the welcome page of idea, click Configure–>Plugin

 

Step 2: Install the Go plug-in

  1. The first method: install through the Ideade Go plug-in. Select Go -> Install to install

 

Second way: the first way may be slower, we can download the plug-in and import it

1. Found in the baidu search go idea the plugin’s website, enter: plugins.jetbrains.com/plugin/9568… Download the latest version of the Go plug-in

 

2. Install the plug-in — just import it

 

 

Go integrated development tool –GoLand

Download one from the official website. There are many activation methods on the Internet