Subscribe
Tag

Golang

23 posts

Golang Tutorial 6: Maps - Efficient Associative Data Structures in GoLang

Maps, also known as hash tables or dictionaries in other languages, are fundamental data structures in GoLang, providing a powerful and versatile mechanism for storing and retrieving data based on key-value pairs. They offer efficient lookup and manipulation of data, making them well-suited for various applications, including user

2 min read

Golang Tutorial 5: Mastering Loops for Efficient Iteration in GoLang

Loops are fundamental programming constructs that allow for repeated execution of a block of code until a certain condition is met. In GoLang, loops play a crucial role in iterating over collections of data, performing repetitive tasks, and controlling program flow. By effectively utilizing loops, developers can create efficient and

2 min read

Golang Tutorial 4: Conditional Statements

Conditional statements are fundamental control flow constructs in programming languages, allowing developers to make decisions based on certain conditions. In GoLang, conditional statements provide a structured approach to executing code paths based on the evaluation of Boolean expressions. By effectively utilizing conditional statements, developers can create robust and flexible applications

2 min read

Golang Tutorial 3: Understanding Constants, Variables, and Functions in GoLang

Constants, variables, and functions are fundamental building blocks of programming languages, providing a means to store and manipulate data, organize code, and perform computations. In GoLang, constants, variables, and functions play a crucial role in defining and manipulating data values, enabling developers to construct robust and efficient applications. Constants: Immutable

2 min read

Implementing a Multiple Schema Multi-Tenant System in GoLang

Managing multiple tenants or clients within a single database infrastructure can be a complex task. Fortunately, GoLang provides the necessary capabilities to implement a multiple schema multi-tenant system effectively. By leveraging GoLang's concurrency and database interaction features, developers can create scalable and efficient multi-tenant applications. Understanding

2 min read

Golang Tutorial 2: Setting up golang

Installing golang using version GoBrew is a command line tool that helps you manage multiple versions of Go on your machine. It allows you to easily switch between different versions of Go and manage your Go environment. Here are the steps to install Go using GoBrew: 1. Install GoBrew by

2 min read

Exponential backoff in go

Introduction Exponential backoff is a technique used to handle network errors and timeouts in a more robust and efficient way. The idea behind exponential backoff is to wait for longer periods of time between retries, each time a failure occurs. This helps to prevent overloading the network or server with

1 min read

Golang: Connecting to posgres using ssl

In this article, you will learn how to host a postgres server with ssl enabled using docker and connect to it using golang. 1. Hosting postgres with ssl 1.1 Setting up root certificate First, we need to create a root certificate which can issue server and client certificates. openssl

3 min read

Golang Tutorial 1: Introduction

In this tutorial, you will learn how to install golang, setup you vscode and write a simple hello world program. 1. Installing go 1.1 Mac There are multiple ways you can install go in mac. The best and easy way to install and handle versioning of golang is home

2 min read
AWS

Finding all Vulnerable Security groups in AWS using golang

Security is very important for any AWS infrastructure. Security groups are essential component for AWS security. Security group acts a virtual firewall for all instances and services (RDS, Elasticache etc.). Security groups provides ingress and egress permissions for an instance. Generally public access is provided to HTTP (80) and HTTPS

1 min read

Conway's Game of life solution in golang

Conway’s Game of life is an interesting problem with a even more interesting solution. In this blog we will look at solving the game of life problem. Since there are solutions which can run infinitely, we will be getting the state of the universe at nth generation or when

3 min read