Follow
Follow
home
Kubernetes
Terraform
AWS
Golang
About
Store
More
43 posts
@surajincloud
@surajnarwade
@surajincloud
Sponsor & Support
Suraj in Cloud
Sponsor this blog
Support my work
Recent articles
Refactoring Terraform easily with moved block
Apr 2, 2024
As Terraform codebase grows, there are chances where you may need to refactor or rename resources in your codebase which can result into deletion and recreation of resources. This happens because terraform thinks that you want to delete and create ne...
Piping Command Output in Go
Sep 10, 2023
In a previous blog post, we learned how to create and run commands in Go. Now, let's explore how to recreate the following command: ls -l | grep hello Let's create the first command: lsCmd := exec.Command("ls", "-l") Next, create the second command...
Running Shell Commands in Go using os/exec
Sep 10, 2023
Sometimes, there are certain use cases where you may have to run shell commands through a Golang app. This is where the os/exec package comes in handy. If you want to run a command like sleep 1, you can simply do the following: cmd := exec.Command("s...
Building which (Linux) command in Go
Sep 9, 2023
One of the best ways to learn a language is via building equivalent Linux commands using the language of your choice. which is my all-time favourite command to see if the binary is present on the server or not. You can see which usage as shown below,...
Recent Sponsors
Be the first one to sponsor Suraj in Cloud
Become a sponsor