© 2023 Hashnode
#go
In concurrent programming, it's crucial to synchronize access to shared resources to avoid data races and ensure consistency. In Go, the sync package provides two types of locks: RLock (read lock) and…
Until today, pointers were the most confusing part of Go for me. That is until I actually sat down and spent some quality time with them. Here are the resources that made it click for me if you want to dig in: The best visual explanation: […
I used Java during most of my career, which had concurrency support from the early days. It allowed developers to start threads and synchronize access to the data shared by more than one thread. Howev…
Go (or Golang) is a powerful programming language known for its simplicity, performance, and concurrency features. However, like any programming language, it has its own set of challenges. One common …
#90DaysOfDevOps Day-12: Input from the user and use of pointers In Golang, there are a few different ways to get input from the user. One way is to use the fmt package's Scanf() function. The Scanf() …
Blockchain technology has revolutionized the way we store and exchange data. With its decentralized nature, blockchain provides a secure and transparent method for transmitting information across a ne…
In the rapidly evolving digital landscape, programming has become one of the most sought-after skills one can possess. Programming languages serve as tools for creating computer programs and applicati…
#90DaysOfDevOps Day-11: Variables, Data Types and Keywords Variables in Go Variables in Go are declared using the var keyword. The variable name is followed by the type of the variable and the value o…
Problem statement Given a string containing just the characters '(' and ')', return the length of the longest valid (well-formed) parentheses substring. Problem statement taken from: https://leetcode.com/problems/longest-valid-parentheses E…
In this article, we'll be creating a simple Go application that acts as a REST service. The application will have one end-point /api/contact will run on port 8080, and will be installed as a systemd s…