Yahya To DevOps

Logo

Cloud and DevOps Blogging Archive.

View the Project on GitHub yaya2devops/cloudblog

The Technology Titan Go Language

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.

Installation

export GOPATH=C:/go-work

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.

These files are hidden, check them out using:

ls -a

Install checks

go version

echo $GOPATH

to check all env available write

go env

Hello world?

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

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.

Good.

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.