Support the Work
42 posts · 41 followers
Sponsor & Support
Suraj in Cloud
Sponsor this blog
Support my work
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,...
Encrypting text with AWS KMS
Sep 3, 2023
Encrypting and decrypting strings using AWS Key Management Service (KMS) and the AWS Command Line Interface (CLI) is a crucial part of securing sensitive data in your AWS environment. In this blog post, we'll walk through the process of encrypting an...
Be the first one to sponsor Suraj in Cloud
Become a sponsor