Shayan khan·Apr 3, 2023Golang and Cloud security, a match made in heaven?In recent years, cloud computing has become an integral part of many businesses’ IT infrastructure. While the cloud offers many benefits…A response icon2A response icon2
Shayan khan·Apr 2, 2023Go(ing) queued: Writing queues in GolangGo is a programming language that was designed with concurrency in mind. One of the key tools for managing concurrency in Go is the use of…A response icon2A response icon2
Shayan khan·Nov 27, 2022How to properly log in Go?For this article, we will be focusing on the log package in Golang. This package implements simple structs, methods and functions to log…A response icon4A response icon4
Shayan khan·Nov 23, 2022Golang Defers: Delaying the execution of a function in Go.Whenever a function executes,it executes the statements line by line.For example:
Shayan khan·Nov 6, 2022Why Golang prefers composition over inheritance?Go is usually touted to be an object oriented language but it is just something else behind the scenes. Normally, in object oriented…A response icon2A response icon2
InCodeXbyShayan khan·Oct 29, 2022(Go)ing Generic: Writing type-free functions in GoIf you are familiar with C++, you probably have heard about templates. Templates. The simple idea behind templates is that to pass the data…
Shayan khan·Oct 23, 2022Go Testing : Using go-cmp to compare equalityAs we know, Testing is all about checking if a certain piece of code gives the desired output or not. Testing is Go is used for the…
Shayan khan·Oct 18, 2022Channels : Enabling communication between routines in GoIn Go, we can communicate between routines by using channels. Taking the following piece of code as an example:A response icon1A response icon1
Shayan khan·Oct 10, 2022Go : Memory ManagementWhenever a programmer starts to learn or practice a new language, the first question that arises to his/her mind is that how memory is…
Shayan khan·Sep 29, 2022(Go)ing Atomic : Controlling state by using atomic variables in GoA race condition is such when two coroutines access the shared variable at the same time, both coroutines read the same value of the…