Shayan khanGolang 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…Apr 3, 2023Apr 3, 2023
Shayan khanGo(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…Apr 2, 2023Apr 2, 2023
Shayan khanHow 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…Nov 27, 20223Nov 27, 20223
Shayan khanGolang Defers: Delaying the execution of a function in Go.Whenever a function executes,it executes the statements line by line.For example:Nov 23, 2022Nov 23, 2022
Shayan khanWhy 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…Nov 6, 20222Nov 6, 20222
Shayan khaninCodeX(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…Oct 29, 2022Oct 29, 2022
Shayan khanGo 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…Oct 23, 2022Oct 23, 2022
Shayan khanChannels : Enabling communication between routines in GoIn Go, we can communicate between routines by using channels. Taking the following piece of code as an example:Oct 18, 20221Oct 18, 20221
Shayan khanGo : 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…Oct 10, 2022Oct 10, 2022
Shayan khan(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…Sep 29, 2022Sep 29, 2022