Sabid Ansari has Published 199 Articles

How to trim prefix from the slice of bytes in Golang?

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 15:11:51

429 Views

In Golang, trimming a prefix from a slice of bytes refers to removing a specific set of bytes from the beginning of the slice. This can be useful when working with byte slices that contain a specific prefix that needs to be removed before further processing. In this article, we ... Read More

Multiple Interfaces in Golang

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:30:49

954 Views

Interfaces in Golang are an integral part of the language's design philosophy. They enable polymorphism, which is the ability to create objects with different underlying types but with common behavior. However, sometimes a struct needs to implement multiple interfaces. This is where multiple interfaces come into play. In this article, ... Read More

Multiple Goroutines

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:28:59

108 Views

In computer programming, goroutines are lightweight threads that allow for concurrent execution of code in a single process. Goroutines are a key feature of the Go programming language, which was developed by Google in 2009. In this article, we'll explore the concept of multiple goroutines and how they can be ... Read More

Methods With Same Name in Golang

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:26:50

550 Views

Go programming language allows multiple methods with the same name, as long as they are defined on different types. This feature is known as method overloading. In this article, we will discuss how to implement methods with the same name in Go and their usage. What are Methods in Golang? ... Read More

Methods in Golang

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:25:39

1K+ Views

In Go, methods are functions that are associated with a specific type. They allow developers to define behavior for objects of that type. In this article, we will explore the basics of methods in Go, how to define and use them, and the different types of methods available. Defining Methods ... Read More

Matching using regexp in GoLang

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:24:23

146 Views

Matching using regular expressions, or regex, is a common task in programming. Go, also known as Golang, provides a built-in package called "regexp" that allows developers to use regular expressions in their programs. In this article, we will explore how to use regular expressions in Go and the different functions ... Read More

Loop Control Statements in Go Language

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:22:02

300 Views

Loop control statements are used in programming languages to control the flow of loops. These statements help developers to execute certain conditions during loop execution. Go, also known as Golang, is a popular open-source programming language that provides three loop control statements: break, continue, and goto. In this article, we ... Read More

Inverse Error Function of Given Number in Golang

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:17:59

121 Views

The inverse error function (erf⁻¹) is the inverse function of the error function (erf) which is used to calculate the probability of a normally distributed random variable falling within a certain range of values. In this article, we will discuss how to calculate the inverse error function of a given ... Read More

Interfaces in Golang

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:15:33

336 Views

Interfaces in Golang are a powerful feature that allows developers to define a set of methods that must be implemented by any type that satisfies that interface. Interfaces help to make code more modular, reusable, and easier to maintain. In this article, we will explore interfaces in Golang, how to ... Read More

Import in GoLang

Sabid Ansari

Sabid Ansari

Updated on 25-Apr-2023 11:12:36

428 Views

Go is a popular programming language that is designed to be efficient, readable, and simple. One of the key features of Go is its ability to manage external packages and dependencies, which is done through the use of import statements. In this article, we will discuss the basics of importing ... Read More

Previous 1 ... 4 5 6 7 8 ... 20 Next
Advertisements