What is Golang?
Golang (aka G0) is a relatively new programming language Google that has taken the IT world by storm. It was released in 2009 and already some of the biggest applications are written in Go, including Docker, Terraform, and Kubernetes.
AnnouncementI have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!
This is a series of bitesize tutorials that’ll help you get comfortable with using Golang. This course also requires you to have some experience with Linux, especially using the Bash terminal.
What makes Golang so great?
There’s a lot to like about Golang, here are some of the main reasons why Golang has become so popular:
- It’s a general purpose language – meaning that it can can be used for writing low level OS level components, which is usually done in C or C++. It’s also create for developing high level components such as creating web servers (e.g. caddy), which is usually done using Python, Ruby.
- It’s cross platform – Meaning that golang can run on any Operating System, e.g. Windows, CentOS, OSX, etc.
- It’s a compiled language – Once you’ve written your code, your a run a command to compile the code into an executable binary file. This compile command actually creates several executable binary files, one for each OS platform. That means you only use the binary for the platform you’re interested in. It also means the golang code you write can support several Operating Systems, so that you don’t need to have several versions of the various Operating Systems.
- It’s super fast and efficient – The code is stored inside the executable binary files are written in the target OS’s own machine code. That means that the OS understands the code directly. It also means that your target machines doesn’t need to have golang installed in order to run the binary file.