Sabid Ansari has Published 199 Articles

Check If the Rune is a Letter or not in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 11:14:29

1K+ Views

There is built-in support for Unicode, including its rune type, in the statically-typed computer language Go. A Unicode code point is represented by a rune, which is the equivalent for the int32 type. There are various methods for determining if a rune is a letter or not in the Go ... Read More

Delete Elements in a Slice in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 11:12:13

7K+ Views

Slices in Golang are dynamically-sized sequences that provide a more powerful interface than arrays. They are commonly used for storing collections of related data. Sometimes, we may want to delete elements from a slice. In this article, we will discuss how to delete elements in a slice in Golang. Deleting ... Read More

Defer Keyword in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 11:08:44

6K+ Views

Golang is a statically-typed programming language that is popular among developers for its simplicity, concurrency support, and garbage collection. One of the unique features of Golang is the defer keyword, which is used to schedule a function call to be executed after the function completes. In this article, we will ... Read More

Counting number of repeating words in a Golang String

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 11:04:07

812 Views

In many applications, it is important to count the number of times a word appears in a string. This can be useful for generating word frequency counts, analyzing text data, and many other tasks. In this article, we will explore how to count the number of repeating words in a ... Read More

Copy the Sign of Given Number in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 11:03:31

127 Views

In Golang, copying the sign of a given number is a common operation that may be needed in certain scenarios. For example, when performing arithmetic operations on numbers, it may be necessary to ensure that the sign of the result matches the sign of one of the operands. In this ... Read More

Copy an Array by Value and Reference into Another Array in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 11:03:00

2K+ Views

In Golang, arrays are fixed-size data structures that hold a collection of values of the same type. In some cases, it may be necessary to copy an array to another array either by value or by reference. In this article, we will explore how to copy an array in Golang ... Read More

Converting a string variable into Boolean, Integer or Float type in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 10:55:27

271 Views

Converting a string variable into Boolean, Integer, or Float type is a common requirement in Golang programming. Golang provides built-in functions that can be used for this purpose. In this article, we will explore how to convert a string variable into a Boolean, Integer, or Float type in Golang. Converting ... Read More

Compressing a File in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 10:54:43

502 Views

Data compression is a process of reducing the size of data in order to save space or transmit data faster. Golang provides several libraries for compressing and decompressing data. In this article, we will discuss how to compress a file in Golang using the "compress/gzip" package. What is gzip Compression? ... Read More

Composition in Golang

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 10:53:59

4K+ Views

Composition is a powerful concept in object-oriented programming that allows creating complex types by combining smaller, simpler types. It enables building new types that have the functionality of several existing types, without the need to inherit from them. In Go, composition is achieved using struct embedding, a language feature that ... Read More

Comparison between Go & Node.js

Sabid Ansari

Sabid Ansari

Updated on 07-Apr-2023 10:53:13

114 Views

When it comes to choosing the right language for a project, developers often compare different programming languages to find the best fit. In this article, we will compare two popular programming languages, Go and Node.js, to help you make an informed decision. Comparison between Go & Node.js Go and Node.js ... Read More

Advertisements