Go is sure to be a major language in the world of programming for years to come. Created by Google in 2009, Go is a modern, open-source language that is designed for high performance, reliability, and ease of use
Why GO Programming Language?
Go is considered a key player in the DevOps world. Docker, Kubernetes, Prometheus, Hugo, Grafana and Terraform are all built on top of Go.
Concurrency support built into Go makes it simple for developers to create highly performant and efficient systems, which is essential in the DevOps world where speed and reliability are critical.
In this article, I'll walk you through my troubleshooting process for installing Go lang and then running your first project.
I downloaded the exe from the internet and installed it, if you wish to install it on Linux, install and extract the binaries.
set env variable, in root, I added this line to
i did it using vim, u can do nano if u wish.
On windows, u can also type 'edit environment variables' in the start and edit manually.
I added this line to .bash_profile (create one if you don't have)
These files are hidden, check them out using:
- Check if Go installed
- check the env variable:
to check all env available write
- write the code
- Let's execute the greatest
go run filename.go
You should be able to successfully set up your development environment and get started on your first project.
Advanced Go use-cases
Building web servers and APIs.
Developing command-line tools and utilities.
Creating concurrent and parallel programs.
Building network services and distributed systems.
Developing serverless functions.
Building and deploying containerized applications.
Developing desktop and mobile applications using GUI libraries.
Building machine learning and data processing pipelines.
Developing blockchain and cryptocurrency applications.
All in all, Go is a powerful, efficient, and simple programming language that is suitable for a wide range of applications. The language's simplicity and ease of use make it accessible to developers of all skill levels, and its performance and scalability make it suitable for building large, complex systems.
Go's popularity has been on the rise in recent years, and it has been adopted by many large companies such as Uber, Netflix, and Dropbox, as well as open-source projects such as Kubernetes and Docker.
Bonus, check this Get ChatGPT in Your terminal, a go-based project that generates ready-to-use devops code such as terraform configurations, kubernetes manifest files, ansible, dockfiles, and much more with a single command.
After building your source code, and connecting to the API, set the PATH variable so you can use the tool anywhere.
Powershell as an admin and run this command:
[Environment]::SetEnvironmentVariable("PATH", "C:\YourPathOfc\aiac;" + [Environment]::GetEnvironmentVariable("PATH"), "User")
Restart your terminals.
- Check the tool in Powershell
- check the tool in git:
In summary, if you are looking for a new language to experience, or if you are interested in building systems, web applications, or network services, Go is definitely worth considering. It is a great choice for your next project and you will not regret giving it a try.