GoLang tidbits

  1. How to remove go installation on Mac?
  2. Go Language Server
  3. Configuring Visual Studio Code to use Go Language Server
  4. Changing user name and email in VSCode

How to remove go installation on Mac?

Before we update go, we will need to remove it from our system. To remove Go from Mac, issue the following command:

To uninstall, delete the /usr/local/go directory by:

$ sudo rm -rf /usr/local/go

Go Language Server

Language server is a LSP protocol capable server that is created to support features like auto complete, go to definition, find all references etc into a IDE. Hence there isn’t a need for various IDE to develop the support independently.

Configuring Visual Studio Code to use Go Language Server

By invoking the command pallette and invoking Preferences:Configuring Language Specific Settings.

Select Go Language
Add the above line

As of 1 February 2021: VS Code Go extension now enables the gopls language server by default.

Changing user name and email in VSCode

Before we can commit changes and push the changes to GitHub, we need to configure the user.name and user.email for VSCode.

Execute the following command via the terminal.

git config --global user.name "goodfunlover"
git config user.name
git config --global user.email "[email protected]"

Leave a comment

Your email address will not be published. Required fields are marked *