AWS resource tags discovery

Discover all tags used in all AWS resources with Golang and AWS GO SDK

As your AWS infrastructure grows, it can become increasingly difficult to keep track of all the resources you’ve created and their associated tags. However, having accurate and comprehensive resource tagging is important for many reasons, such as cost allocation, resource organization, and compliance auditing. In this blog post, we’ll explore a solution that uses the AWS SDK to fetch all resource tags across all AWS regions and store them in a SQLite database....

March 15, 2023
Benchmark your Golang code

Benchmarking Golang code using benchmark function

Benchmarking Golang Code Go provides a benchmarking tool as part of its standard testing package to measure the performance of your code. To use benchmarking in Go, you write a benchmark function and run it with the “go test” command using the -bench flag followed by a regular expression that matches the benchmark function names. Here is an example: //add_test.go package main import "testing" func BenchmarkAdd(b *testing.B) { x := 1 y := 2 for i := 0; i < b....

February 11, 2023
Writing clean code in Golang

Writing Clean and Efficient Code in Go

Writing Clean Code in Go This article covers the importance of writing clear, maintainable, and efficient code in the Go programming language. Clean code is a crucial aspect of software development as it makes the code easier to understand, modify, and enhances the application’s overall performance. To write clean code in Go, it’s crucial to follow best practices for code organization, readability, and modularity and avoid anti-patterns that lead to code complexity and bugs....

February 4, 2023