Home » News » Getting Start with Go

Getting Start with Go

Getting Start Before you can dive into programming in Go, you ne to install it on your computer. The installation process is simple, and once it’s complete, you can start creating your first program right away.

In addition to the Go distribution, you will ne any text itor that is convenient for you. Today, most text itors have good support for the Go language. For example, the free VSCode, Vim or Notepad++.

Installation and first program

Getting Start To get start, go to the official website of the Go programming language. You can go to the old address golang.org, and you will be automatically rirect to the new domain. After that, you will ne to select the operating system you are going to work on.

The latest version 1.22.2 for Windows weighs 60.2 MB. Download the distribution, run the installer and follow the instructions. After installation is complete, configure the development environment if necessary.

Go has a unique workspace structure

By default, it expects all projects to be organiz in a specific rich people data workspace directory. This directory contains three subdirectories – src, bin, and pkg.

The first one stores source code files organiz into packages. The bin folder contains binary, i.e. compil executable files. And the pkg folder contains package objects.

Select a location for your workspace. Then set up the GOPATH environment variable. It should point to the root of the workspace directory. Now let’s try writing our first program.

Traditionally, it will be “Hello, World!

To begin, open a text itor and create a new file with the adam seede director, contact centers / customer support extension. Try to give names that characterize the contents of the file. For example, for this program – .

Save the above code in a file call . Now open cmd (command prompt), go to the singapore phone list directory where you sav the file. Then run the command – go run . This will compile and run the program you just wrote.

For beginners, using the command line may seem inconvenient. In this case, there is an open source solution from Microsoft – the Visual Studio Code itor. In it, you can run and check the listing without a separate call to the command line.

Scroll to Top