DEV Community

Muhammad Farooq
Muhammad Farooq

Posted on

1

install Go language on Ubuntu

Introduction

Go? Sometimes referred as "Golang", is a programming language that was made by Google and they made it available for anyone to use for free in 2012. The main idea behind Go was to create a language that would be easy to learn, so that more people could use it.

Remove previous installation (if there is any)

Remove any previous Go installation by deleting the /usr/local/go folder (if it exists).

sudo rm -rf /usr/local/go

Installation

Method 1

execute the following command

sudo snap install go

but it might give the following error:

error: This revision of snap "go" was published using classic confinement and thus may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to, which may put your system at risk.

If you understand and want to proceed repeat the command including --classic .

now run the following command

sudo snap install --classic go

Go will be installed on your system

Check installation

to check whether the go is installed or not run the following command

go version

it will display the version of installed go language

I hope this tutorial will help you

Apache AGE viewer Desktop Project is under development in Go

AGE viewer Desktop Go

visit Apache AGE:

Official Site

Apache AGE Github

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay