In this article, we will see how to configure SSH keys in git for windows. What is SSH? SSH (secure shell) is a protocol used for secure communication between two computers. SSH uses a key-pair also known as public key…
In golang, backquoted strings are used to create a string literals that contains the special characters and line breaks. These strings are also known as the “raw strings” and enclosed by backticks (`) instead of double quotes (“”). In this…
In this article, we will see how to use timeouts with channels in golang. What are channels in golang? Channels are a powerful tool for communicating between goroutines. However, in some scenarios we may need to set a timeout for…
In this article, we will see how to check if a variable is an array or slice in Golang. To determine if a variable is an array or slice using reflection, we can use the “reflect” package in Golang. Using…
In this article, we will see how to access a map using its reference in golang. What is map? A map is a collection of key-value pairs, where each key is unique, and its corresponding value can be accessed using…
In this article, we will see how to add headers to the Axios requests. In some scenarios, while making requests with Axios, we may need to add custom headers to the request, such as authentication tokens, content types, or user…
In this article, we will see how to pass the data between multiple components while navigating programmatically using the react router. Using the push method of an history object we can push the new URL that we want to navigate…
In this article, we will see how to detect when a user is leaving a page using React Router. There are several use cases where we must detect if the user is leaving the page. For example, if user is…
In this article, we will see what happens if we update or set state inside the react useEffect. In react, we create the state using the useState() hook. Following is the syntax. In the above example, the “state” is the…
In this article, we will see how to add remove and get the tags of a commit in git. Tags allow us to mark specific commits with a meaningful labels. This can make it easier to identify important milestones in…