What is Go and where it runs

Contents
What Go is
Where Go runs
Why learn Go
The go tool

What Go is

Go, often called Golang, is a compiled programming language created at Google for clear and dependable software.

It is statically typed and has automatic memory management, so many mistakes are caught by the compiler while the programmer writes less boilerplate.

Read the overview article Golang and then continue with this course from the first lesson to the last one.

package main import "fmt" func main() { fmt.Println("Hello, Go") }

Every example in this course follows the same shape: a package clause, an import block, and a main function.

Where Go runs

Go runs on all common desktop and server systems: Linux, macOS, and Windows.

One codebase can produce a native binary for each platform, which makes deployment simple: copy one file and start it, with no runtime to install.

That is why Go is popular for web backends, network proxies, DevOps utilities, and cloud services inside client/server systems.

Why learn Go

Go has a small and regular syntax, so beginners read real programs after a few lessons.

The compiler is fast, the standard library covers networks and files and text, and built-in concurrency helps programs handle many tasks at once.

These traits make Go a solid first backend language and a practical tool for everyday automation.

The go tool

The go command manages the whole workflow: run code, build binaries, test packages, and format sources.

The next lessons use go run and go build all the time, so install the toolchain first and confirm the version.

go version

go version go1.21 linux/amd64

Next: Install Go and check the version

Article author: Arthur Isaev

Related articles
Golang
Go course: zero to hero in 50 lessons
What is Go and where it runs
Install Go and check the version
Your first Go program
Modules with go mod
Variables
Constants
Types
Numbers
Strings
Conditions with if
Switch in Go
Loops with for
Arrays in Go
Slices in Go
Maps in Go
Functions in Go
Errors as values
Pointers in Go
Structs in Go
Methods in Go
Interfaces in Go
Embedding instead of inheritance
Generics in Go
Packages and imports
The go toolchain
Testing with go test
Advanced errors
defer in Go
Strings, bytes and runes
Time in Go
JSON
Files and IO
HTTP servers
HTTP clients
Context
Goroutines
Channels
select and sync
CLI: args, flags, env
Logging
Regular expressions
Sorting
Concurrency patterns
Databases with database/sql
Benchmarks and profiling
Toolchain and CI
Project layout
Capstone: wordfreq CLI
Capstone: JSON API server
Hero roadmap: the whole course on one page
Install Go on Windows 11
Install Go on Ubuntu
Install Go on Rocky Linux
Install Go on macOS
Install Go on FreeBSD
Go in Docker

Search this site

Channel @aofeed Chat @aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: